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 ----