We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc3e93 commit e71d35fCopy full SHA for e71d35f
README.md
@@ -150,6 +150,10 @@ This `onbuild` variant will only install npm packages according to the
150
discussion in
151
[`nodejs/docker-node#65`](https://github.com/nodejs/docker-node/issues/65).
152
153
+Note that npm installs devDependencies by default, which is undesirable if
154
+you're building a production image. To avoid this pass NODE_ENV as a build
155
+argument i.e. `docker build --build-arg NODE_ENV=production …`.
156
+
157
## `node:slim`
158
159
This image does not contain the common packages contained in the default tag and
0 commit comments