Browse Source

cloud

master
zeus 3 years ago
parent
commit
0e63252ed7
  1. 8
      hybrid-cloud-el/dockerfile.adoc

8
hybrid-cloud-el/dockerfile.adoc

@ -52,16 +52,16 @@ FROM node:8.2.1-alpine
WORKDIR /code
COPY package.json /code/package.json \\ <1>
COPY package.json /code/package.json // <1>
RUN npm install \ // <2>
&& npm install -g nodemon@1.11.0 \ // <3>
&& npm cache clean --force; //<4>
COPY app.js /code \\ <5>
COPY index.html /code \\ <5>
COPY app.js /code // <5>
COPY index.html /code // <5>
CMD ["npm", "start"] \\ <6>
CMD ["npm", "start"] // <6>
----
<1> Copy package.json file
<2> Install the dependencies in the local node_modules folder.

Loading…
Cancel
Save