abernix / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
93 stars 129 forks source link

Specify node-args for (build) process #35

Closed smeijer closed 5 years ago

smeijer commented 6 years ago

I'm getting the error below on while building the container. Would be helpfull if we could specify node-args to the build process, and perhaps the running node process as well.

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

--node-args="--max-old-space-size=6144" is expected to fix this error.

abernix commented 5 years ago

This should have been fixed as of #15, though I'll note that I believe you can just set that flag using the NODE_OPTIONS environment variable even without that fix, as noted in the Node.js documentation.