Skip to content

Commit

Permalink
Reduce overall memory used by docker build (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Aug 23, 2023
1 parent 14e49cf commit c90abd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ COPY package.json package.json
COPY yarn.lock yarn.lock
COPY packages packages

ARG NODE_OPTIONS=--max-old-space-size=4096

# Build the client bundles
RUN echo "Building with NODE_OPTIONS=$NODE_OPTIONS"
RUN yarn \
&& yarn nx bundle:npm @veupathdb/clinepi-site \
&& yarn nx bundle:npm @veupathdb/genomics-site \
Expand Down

0 comments on commit c90abd2

Please sign in to comment.