From dec1358b49b29397a6592131e26e23b0842d8624 Mon Sep 17 00:00:00 2001 From: g Date: Sun, 11 Jan 2026 10:15:44 +0000 Subject: [PATCH] Invalidate Docker cache and fix git_commit_sha --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bb7be76..3860062 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,7 @@ RUN mkdir -p /app/.next && chmod -R 755 /app/.next # Build the Next.js application with reduced memory for Turbopack # Next.js 16 uses Turbopack by default which may need more memory -RUN echo "Building with GIT_COMMIT_SHA=$(cat /app/git_commit_sha)" && \ +RUN echo "invalidate cache" && echo $(git rev-parse --short HEAD 2>/dev/null || echo "unknown") > /app/git_commit_sha && \ NODE_OPTIONS='--max_old_space_size=2048' NEXT_TELEMETRY_DISABLED=1 pnpm run build # ---- Production Stage ----