fix: 移除 BuildKit 依赖,使用传统 Docker 层缓存
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled

- 移除 BuildKit 语法和缓存挂载
- 使用传统 Docker 层缓存优化
- 优化 Dockerfile 层顺序(pom -> 依赖 -> 代码)
- 仍然可以获得较好的缓存效果
This commit is contained in:
lzh
2026-01-13 15:40:37 +08:00
parent 25fad8d6fd
commit 7142fe79d9
2 changed files with 7 additions and 13 deletions

4
Jenkinsfile vendored
View File

@@ -22,10 +22,6 @@ pipeline {
// Docker Registry 配置
REGISTRY = 'localhost:5000'
// 启用 Docker BuildKit加速构建
DOCKER_BUILDKIT = '1'
BUILDKIT_PROGRESS = 'plain'
// Maven 配置
MAVEN_OPTS = '-Xmx2048m -Dmaven.repo.local=.m2/repository'