From daf8b870f0309e0b68dae5a89ed740c971bc569e Mon Sep 17 00:00:00 2001 From: fawney19 Date: Fri, 19 Dec 2025 02:38:46 +0800 Subject: [PATCH] fix: include Dockerfile.base.local in dependency hash calculation - Add Dockerfile.base.local to deps hash to detect Docker configuration changes - Ensures deployment rebuilds when nginx proxy settings are modified - Prevents stale Docker images from being reused after config changes --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index c228c4f..8ca453d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -21,9 +21,9 @@ HASH_FILE=".deps-hash" CODE_HASH_FILE=".code-hash" MIGRATION_HASH_FILE=".migration-hash" -# 计算依赖文件的哈希值 +# 计算依赖文件的哈希值(包含 Dockerfile.base.local) calc_deps_hash() { - cat pyproject.toml frontend/package.json frontend/package-lock.json 2>/dev/null | md5sum | cut -d' ' -f1 + cat pyproject.toml frontend/package.json frontend/package-lock.json Dockerfile.base.local 2>/dev/null | md5sum | cut -d' ' -f1 } # 计算代码文件的哈希值