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:
2026-06-15 16:05:31 +02:00
parent 6714e26716
commit 18074524e8
+1
View File
@@ -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 ──────────────────────────────────────────────────────────────────