mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
update the file of dockerizing a Node.js app.
Signed-off-by: Zhenan Ye <21551168@zju.edu.cn>
This commit is contained in:
parent
a9c73b1a7e
commit
883b0567f2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue