Skip to content

Commit b7e4e86

Browse files
feat(frontend): increase max-old-space-size in FE Dockerfile (#12624)
# Motivation We need to increase `max-old-space-size` in the docker environment when building FE to prevent fails due to JS heap size.
1 parent a27dcc7 commit b7e4e86

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile.frontend

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ RUN echo $DFX_NETWORK
4040

4141
RUN npm ci
4242
RUN npm run prepare
43+
44+
ENV NODE_OPTIONS=--max-old-space-size=4096
4345
RUN npm run build
46+
4447
RUN scripts/build.frontend-report.sh > build/build-report.txt
4548

4649

0 commit comments

Comments
 (0)