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:
parent
d894012af6
commit
a65259688f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue