From 18074524e8f08513165bc53e1b5778e2fe7dd30f Mon Sep 17 00:00:00 2001 From: Arnaud Nelissen Date: Mon, 15 Jun 2026 16:05:31 +0200 Subject: [PATCH] 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 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 48f47b4..28bd01f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ──────────────────────────────────────────────────────────────────