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.
This commit is contained in:
Tiago Yamamoto 2025-12-28 13:48:22 -03:00
parent d894012af6
commit a65259688f

View file

@ -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