Invalidate Docker cache and fix git_commit_sha
All checks were successful
Build Frontend / build (push) Successful in 1m50s
All checks were successful
Build Frontend / build (push) Successful in 1m50s
This commit is contained in:
@@ -35,7 +35,7 @@ RUN mkdir -p /app/.next && chmod -R 755 /app/.next
|
|||||||
|
|
||||||
# Build the Next.js application with reduced memory for Turbopack
|
# Build the Next.js application with reduced memory for Turbopack
|
||||||
# Next.js 16 uses Turbopack by default which may need more memory
|
# 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
|
NODE_OPTIONS='--max_old_space_size=2048' NEXT_TELEMETRY_DISABLED=1 pnpm run build
|
||||||
|
|
||||||
# ---- Production Stage ----
|
# ---- Production Stage ----
|
||||||
|
|||||||
Reference in New Issue
Block a user