From cd94b010ed2cb801f68f35d3b94db34f33227b31 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 11 Oct 2026 00:44:14 +0200 Subject: [PATCH] build(docker): the server build gets a 4 GB heap, so the image builds on hosts with less memory --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9aa594bbc..12a433b11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,9 @@ COPY server/package.json ./server/ RUN npm ci --workspace=server --ignore-scripts COPY --from=shared-builder /app/shared/dist ./shared/dist COPY server/ ./server/ -RUN npm run build --workspace=server +# tsc needs more than the 2 GB heap Node picks on a host with about 12 GB of RAM; +# on a bigger build machine the default is larger, so only small hosts failed. +RUN NODE_OPTIONS=--max-old-space-size=4096 npm run build --workspace=server # ── Stage 4: production runtime ────────────────────────────────────────────── FROM node:24-trixie-slim