fix: 移除 BuildKit 依赖,使用传统 Docker 层缓存
- 移除 BuildKit 语法和缓存挂载 - 使用传统 Docker 层缓存优化 - 优化 Dockerfile 层顺序(pom -> 依赖 -> 代码) - 仍然可以获得较好的缓存效果
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user