Skip to content

Commit

Permalink
Increase heap allocation
Browse files Browse the repository at this point in the history
Previously execution of the `npm run build` commans in Dockerfile was resulting
in `JavaScript heap out of memory` error. Trying to change Node heap allocation
to see if that fixes the issue.
  • Loading branch information
michalsmiarowski committed Feb 1, 2024
1 parent 0d61fe2 commit 0c72a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solidity-v1/dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN npm ci --ignore-scripts
COPY src /app/src
COPY public /app/public

RUN npm run build
RUN NODE_OPTIONS=--max_old_space_size=4096 npm run build

# Production environment
FROM nginx:1.17-alpine
Expand Down

0 comments on commit 0c72a89

Please sign in to comment.