fix(docker): cap Node.js heap to 1536MB during build
Prevents OOM kill on low-memory servers during Next.js + Workbox build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,7 @@ COPY . .
|
||||
RUN pnpm prisma generate
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NODE_OPTIONS="--max-old-space-size=1536"
|
||||
RUN pnpm build
|
||||
|
||||
# ── runner ──────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user