Skip to content

Commit

Permalink
Merge pull request #2580 from IntersectMBO/fix.2553-insufficient-heap…
Browse files Browse the repository at this point in the history
…-memory-during-build

fix: increase heap memory limit
  • Loading branch information
MSzalowski authored Dec 27, 2024
2 parents f2534f5 + b68d808 commit 840e065
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions govtool/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ARG VITE_PDF_API_URL
ARG VITE_IPFS_GATEWAY
ARG VITE_IPFS_PROJECT_ID

ENV NODE_OPTIONS="--max-old-space-size=4096"

# Ensure all required build arguments are set
RUN \
: "${VITE_APP_ENV:?Build argument VITE_APP_ENV is not set}" && \
Expand Down
2 changes: 2 additions & 0 deletions govtool/frontend/Dockerfile.qovery
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ ARG VITE_IPFS_PROJECT_ID

WORKDIR /src

ENV NODE_OPTIONS="--max-old-space-size=4096"

# Set npm configuration settings using environment variables
RUN npm config set @intersect.mbo:registry "https://registry.npmjs.org/" --location=global
RUN npm config set //registry.npmjs.org/:_authToken ${NPMRC_TOKEN} --location=global
Expand Down

0 comments on commit 840e065

Please sign in to comment.