From 927d8bc635c5987a23b39d2e8883c7ed10af2696 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 21 May 2025 04:48:37 +0000 Subject: [PATCH] Fix: Increase Node.js memory limit in Docker build The Docker build process was failing with an out-of-memory error during the `pnpm run build` step in the `bolt-ai-production` stage. This commit increases the memory available to Node.js by modifying the build command to include the `--max-old-space-size=4096` flag. This provides 4GB of memory to the Node.js process, which should be sufficient to complete the build. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1cd3f0bf..b08a40b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,7 +55,7 @@ ENV WRANGLER_SEND_METRICS=false \ RUN mkdir -p /root/.config/.wrangler && \ echo '{"enabled":false}' > /root/.config/.wrangler/metrics.json -RUN pnpm run build +RUN node --max-old-space-size=4096 node_modules/.bin/pnpm run build CMD [ "pnpm", "run", "dockerstart"]