From a65259688fb2198f0c5f23708e5bd21f3698f52c Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Sun, 28 Dec 2025 13:48:22 -0300 Subject: [PATCH] fix(docker): Increase NODE_OPTIONS memory for build The docker build was failing due to a JavaScript heap out of memory error. This commit increases the --max-old-space-size in NODE_OPTIONS from 384MB to 2048MB in the builder stage of the Dockerfile to provide more memory for the build process, resolving the memory allocation failure during > backoffice@0.0.1 build /home/yamamoto/lab/gohorsejobs/backoffice > nest build. --- backoffice/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backoffice/Dockerfile b/backoffice/Dockerfile index a3eda81..67771d4 100644 --- a/backoffice/Dockerfile +++ b/backoffice/Dockerfile @@ -38,7 +38,7 @@ RUN --mount=type=cache,id=pnpm-backoffice,target=/pnpm/store \ FROM base AS builder # Reduce memory for build -ENV NODE_OPTIONS="--max-old-space-size=384" +ENV NODE_OPTIONS="--max-old-space-size=2048" WORKDIR /app