do not chew all memory

This commit is contained in:
burnettk 2022-11-04 19:03:53 -04:00
parent 2011b5728c
commit 48a74301fb
1 changed files with 3 additions and 0 deletions

View File

@ -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