somratpro Claude Opus 4.7 commited on
Commit
b517c30
·
1 Parent(s): 7fec572

fix: restore 3072 MB heap for frontend — single-thread needs ~1.9 GB

Browse files

cpus:1 eliminates parallel webpack workers (the root OOM cause).
But 2048 MB was too tight for a single V8 heap; the GC died at ~1855 MB.
With only one worker process, 3072 MB is safe — the builder sees one 3 GB
Node process instead of N×3 GB parallel workers that triggered the original
OOMKilled.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -73,7 +73,7 @@ RUN pnpm install --frozen-lockfile=false
73
  RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:backend
74
  RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:workers
75
  RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:cron
76
- RUN NODE_OPTIONS="--max-old-space-size=2048" pnpm run build:frontend
77
 
78
  # Drop dev junk to shrink the runtime image.
79
  RUN find . -name ".git" -type d -prune -exec rm -rf {} + 2>/dev/null || true \
 
73
  RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:backend
74
  RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:workers
75
  RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:cron
76
+ RUN NODE_OPTIONS="--max-old-space-size=3072" pnpm run build:frontend
77
 
78
  # Drop dev junk to shrink the runtime image.
79
  RUN find . -name ".git" -type d -prune -exec rm -rf {} + 2>/dev/null || true \