Jenkinsfile-dev 也改为多阶段构建,Dockerfile 支持 BUILD_MODE 参数

This commit is contained in:
2026-05-30 10:06:24 +08:00
parent c1f00378f2
commit 52dbc51749
3 changed files with 14 additions and 67 deletions
Vendored
+1 -1
View File
@@ -9,7 +9,7 @@ pipeline {
stage('构建 Docker 镜像') {
agent any
steps {
sh 'docker build -t $IMAGE_NAME .'
sh 'docker build --build-arg BUILD_MODE=production -t $IMAGE_NAME .'
}
}
stage('部署容器') {