From b68d808e46b38fa4774c4df49a896e5081bff177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 24 Dec 2024 16:25:27 +0100 Subject: [PATCH] fix: increase heap memory limit --- govtool/frontend/Dockerfile | 2 ++ govtool/frontend/Dockerfile.qovery | 2 ++ 2 files changed, 4 insertions(+) diff --git a/govtool/frontend/Dockerfile b/govtool/frontend/Dockerfile index a9b01bad9..7c3eb3740 100644 --- a/govtool/frontend/Dockerfile +++ b/govtool/frontend/Dockerfile @@ -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}" && \ diff --git a/govtool/frontend/Dockerfile.qovery b/govtool/frontend/Dockerfile.qovery index 092754cf2..0f871462f 100644 --- a/govtool/frontend/Dockerfile.qovery +++ b/govtool/frontend/Dockerfile.qovery @@ -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