From 883b0567f2c96cb5cbcc31e5b02938bcc6d5877f Mon Sep 17 00:00:00 2001 From: Zhenan Ye <21551168@zju.edu.cn> Date: Thu, 18 Feb 2016 04:18:24 -0800 Subject: [PATCH] update the file of dockerizing a Node.js app. Signed-off-by: Zhenan Ye <21551168@zju.edu.cn> --- docs/examples/nodejs_web_app.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/nodejs_web_app.md b/docs/examples/nodejs_web_app.md index 55425c0672..3e1099f89d 100644 --- a/docs/examples/nodejs_web_app.md +++ b/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