From 591fae683b55fee1acdce72fa3f1ceb4fac2c35b Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Fri, 23 Jun 2023 12:05:36 -0300 Subject: [PATCH] chore: increase max space size node option in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c090bbaa0..760d04f6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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