Merge pull request #20438 from YeZhenan/nodejs_web_app-update

update the dockfile of dockerizing a Node.js app.
This commit is contained in:
Sebastiaan van Stijn 2016-02-18 19:17:59 +01:00
commit 84d2d6acdd
1 changed files with 2 additions and 2 deletions

View File

@ -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