From 1d8778037f5185ad7f9d1266970b244597f5de22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=A1=BA=E4=B8=9C?= <577732344@qq.com> Date: Thu, 15 Jan 2026 20:32:58 +0800 Subject: [PATCH] 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 --- job_crawler/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job_crawler/deploy.sh b/job_crawler/deploy.sh index 8f8eb50..7171deb 100644 --- a/job_crawler/deploy.sh +++ b/job_crawler/deploy.sh @@ -40,7 +40,7 @@ show_help() { # 构建镜像 build() { log_info "构建镜像: ${IMAGE_NAME}:${IMAGE_TAG}" - docker build -t ${IMAGE_NAME}:${IMAGE_TAG} . + docker build --no-cache -t ${IMAGE_NAME}:${IMAGE_TAG} . log_info "构建完成" }