Commit Graph

6 Commits

Author SHA1 Message Date
Peter Petrov 0a3a6dbbef Force cache cleaning 2017-06-07 03:19:56 +03:00
Andrew Euell 8b07577fa5 Run 'npm cache clean' after 'npm install' in onbuild variants 2017-01-06 15:16:47 -05:00
Christopher Horrell 1c65c4ed37 Set ENV for NODE_ENV
This ensures that the value of NODE_ENV is made available to the CMD
context. This ensures commands such as `npm start` or `node index.js`
are using the correct NODE_ENV.

See comments in
https://github.com/docker-library/official-images/pull/2156
2016-09-19 16:36:04 -04:00
Mark Woodbridge 0fc3e930db Correct location of ARG instruction 2016-09-15 17:41:03 +01:00
Mark Woodbridge aa53b15137 Add NODE_ENV ARG to onbuild template
It's currently impossible to prevent npm installing devDependencies when using the node onbuild images. Adding a NODE_ENV ARG enables `docker build --build-arg NODE_ENV=production .`, which is the equivalent of `npm install --production`. Providing the `--build-arg` is optional, so this is backwards-compatible.
2016-09-15 13:50:33 +01:00
Laurent Goderre ced0aa8af2 Added templates for generating the variants 2016-04-08 09:10:42 -04:00