chore(build): 移除Dockerfile中的离线模式标志

- 从Maven构建命令中移除了-o(离线)标志
- 确保构建过程中能够访问远程仓库获取依赖
- 提高了依赖解析的可靠性和准确性
This commit is contained in:
2026-01-30 11:59:44 +08:00
parent c221666e67
commit e624c8a26f

View File

@@ -53,7 +53,7 @@ COPY backend/ /opt/backend
# 编译打包(使用缓存的依赖)
RUN --mount=type=cache,target=/root/.m2/repository \
cd /opt/backend/services && \
mvn -o clean package -Dmaven.test.skip=true
mvn clean package -Dmaven.test.skip=true
FROM eclipse-temurin:21-jdk