Merge pull request #739 from resin-io/reduce-memory-usage

memory: Reduce memory usage by applying node command line flags
This commit is contained in:
CameronDiver 2018-09-04 13:13:19 -07:00 committed by GitHub
commit 687dfcd124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,4 +38,4 @@ if [ ! -z "${BALENA_ROOT_CA}" ]; then
fi
fi
exec node /usr/src/app/dist/app.js
exec node --max_old_space_size=50 --optimize_for_size --always_compact /usr/src/app/dist/app.js