From 11eba6b2efefceed537da7b0c8d38acb28bd2f18 Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 4 Nov 2022 19:03:53 -0400 Subject: [PATCH] do not chew all memory --- spiffworkflow-frontend/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spiffworkflow-frontend/Dockerfile b/spiffworkflow-frontend/Dockerfile index 4a373fc2e..f6d1df818 100644 --- a/spiffworkflow-frontend/Dockerfile +++ b/spiffworkflow-frontend/Dockerfile @@ -6,6 +6,9 @@ ADD package.json /app/ ADD package-lock.json /app/ COPY . /app/ +# this matches total memory on spiffworkflow-demo +ENV NODE_OPTIONS=--max_old_space_size=2048 + # npm ci because it respects the lock file. # --ignore-scripts because authors can do bad things in postinstall scripts. # https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet.html