diff --git a/components/engine/docs/examples/nodejs_web_app.md b/components/engine/docs/examples/nodejs_web_app.md index 55425c0672..3e1099f89d 100644 --- a/components/engine/docs/examples/nodejs_web_app.md +++ b/components/engine/docs/examples/nodejs_web_app.md @@ -89,7 +89,7 @@ Install your app dependencies using the `npm` binary: # Install app dependencies COPY package.json /src/package.json - RUN cd /src; npm install + RUN cd /src; npm install --production To bundle your app's source code inside the Docker image, use the `COPY` instruction: @@ -119,7 +119,7 @@ Your `Dockerfile` should now look like this: # Install app dependencies COPY package.json /src/package.json - RUN cd /src; npm install + RUN cd /src; npm install --production # Bundle app source COPY . /src