chore(job_crawler): add no-cache flag to Docker build in deploy script
- Add --no-cache flag to docker build command to ensure fresh image builds - Prevents cached layers from being used, guaranteeing latest dependencies - Improves reliability of deployment process by avoiding stale artifacts
This commit is contained in:
@@ -40,7 +40,7 @@ show_help() {
|
|||||||
# 构建镜像
|
# 构建镜像
|
||||||
build() {
|
build() {
|
||||||
log_info "构建镜像: ${IMAGE_NAME}:${IMAGE_TAG}"
|
log_info "构建镜像: ${IMAGE_NAME}:${IMAGE_TAG}"
|
||||||
docker build -t ${IMAGE_NAME}:${IMAGE_TAG} .
|
docker build --no-cache -t ${IMAGE_NAME}:${IMAGE_TAG} .
|
||||||
log_info "构建完成"
|
log_info "构建完成"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user