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:
2026-01-15 20:32:58 +08:00
parent 53288327a1
commit 1d8778037f

View File

@@ -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 "构建完成"
} }