nodesource / docker-node

Dockerfiles for building docker images with the NodeSource Node.js binaries baked in.
MIT License
192 stars 22 forks source link

NODE_ENV is set to production by default in image #61

Closed DCRichards closed 6 years ago

DCRichards commented 6 years ago

Description

I am currently using nodesource/jessie:0.10.46 for a (legacy!) project, it took a while of investigating missing devDependencies to realise that NODE_ENV=production was set by default.

Should this be the choice of the user to enable production, as Docker is often used in development and for testing/CI etc?

chrislea commented 6 years ago

We don't set that variable on newer versions of Node, but 0.10.x has been EOL for some time now and won't be receiving any further updates.