serv打包
This commit is contained in:
47
.dockerignore
Normal file
47
.dockerignore
Normal file
@@ -0,0 +1,47 @@
|
||||
# Docker 构建时排除的目录和文件
|
||||
|
||||
# 排除数据卷目录(PostgreSQL 等容器创建的数据)
|
||||
**/volumes/
|
||||
**/data/
|
||||
docker/**/volumes/
|
||||
|
||||
# 排除日志
|
||||
**/logs/
|
||||
*.log
|
||||
|
||||
# 排除临时文件
|
||||
*.tmp
|
||||
*.swp
|
||||
.tmp/
|
||||
|
||||
# 排除 git
|
||||
.git/
|
||||
**/.git/
|
||||
|
||||
# 排除 IDE 配置
|
||||
.idea/
|
||||
.vscode/
|
||||
**/.vscode/
|
||||
|
||||
# 排除环境文件
|
||||
.env
|
||||
.env.local
|
||||
**/.env.local
|
||||
|
||||
# 排除 node_modules(前端构建时会重新安装)
|
||||
**/node_modules/
|
||||
|
||||
# 排除构建产物(保留 JAR 文件)
|
||||
**/dist/
|
||||
**/build/
|
||||
# 排除 target 下的非 JAR 文件
|
||||
**/target/classes/
|
||||
**/target/generated-sources/
|
||||
**/target/generated-test-sources/
|
||||
**/target/maven-archiver/
|
||||
**/target/maven-status/
|
||||
**/target/test-classes/
|
||||
**/target/*.original
|
||||
|
||||
# 排除导出的镜像
|
||||
docker/urbanLifeline/images/
|
||||
@@ -10,6 +10,9 @@ ENV LANG=C.UTF-8 \
|
||||
LC_ALL=C.UTF-8 \
|
||||
TZ=Asia/Shanghai
|
||||
|
||||
# 使用阿里云镜像源(解决网络问题)
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
|
||||
# 安装基础工具
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
|
||||
@@ -18,14 +18,15 @@ COPY urbanLifelineServ/gateway/target/*.jar /app/jars/gateway.jar
|
||||
COPY urbanLifelineServ/system/target/*.jar /app/jars/system.jar
|
||||
COPY urbanLifelineServ/auth/target/*.jar /app/jars/auth.jar
|
||||
COPY urbanLifelineServ/file/target/*.jar /app/jars/file.jar
|
||||
COPY urbanLifelineServ/log/target/*.jar /app/jars/log.jar
|
||||
COPY urbanLifelineServ/message/target/*.jar /app/jars/message.jar
|
||||
COPY urbanLifelineServ/crontab/target/*.jar /app/jars/crontab.jar
|
||||
COPY urbanLifelineServ/ai/target/*.jar /app/jars/ai.jar
|
||||
COPY urbanLifelineServ/bidding/target/*.jar /app/jars/bidding.jar
|
||||
COPY urbanLifelineServ/platform/target/*.jar /app/jars/platform.jar
|
||||
COPY urbanLifelineServ/workcase/target/*.jar /app/jars/workcase.jar
|
||||
|
||||
# # COPY urbanLifelineServ/log/target/*.jar /app/jars/log.jar
|
||||
# COPY urbanLifelineServ/message/target/*.jar /app/jars/message.jar
|
||||
# COPY urbanLifelineServ/crontab/target/*.jar /app/jars/crontab.jar
|
||||
# COPY urbanLifelineServ/bidding/target/*.jar /app/jars/bidding.jar
|
||||
# COPY urbanLifelineServ/platform/target/*.jar /app/jars/platform.jar
|
||||
|
||||
# 配置目录 (可外挂)
|
||||
VOLUME ["/app/config", "/app/logs"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user