Skip to content

Commit

Permalink
chore: increase max space size node option in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Jun 23, 2023
1 parent 1224c60 commit 591fae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ COPY ./tsconfig.json /app/tsconfig.json

RUN sed -i.temp '/Pulumi\.ts/d' package.json

RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build:server
RUN NODE_OPTIONS="--max-old-space-size=2048" VERSION_NUMBER=$version_number npm run build:front
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build:server
RUN NODE_OPTIONS="--max-old-space-size=4096" VERSION_NUMBER=$version_number npm run build:front
RUN npm prune --production

FROM node:16.14-alpine
Expand Down

0 comments on commit 591fae6

Please sign in to comment.