Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit ae8d2b3

Browse files
FedeGcodydaig
authored andcommitted
fix(docker) - Updated Dockerfile production (#1523)
1 parent a7aebbd commit ae8d2b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile-production

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ WORKDIR /opt/mean.js
6161
# and install node_modules/ everytime we build the docker, but only
6262
# when the local package.json file changes.
6363
# Install npm packages
64-
ADD package.json /opt/mean.js/package.json
64+
COPY package.json /opt/mean.js/package.json
6565
RUN NODE_ENV=development npm install --quiet && npm cache clean
6666

6767
# Install bower packages
68-
ADD bower.json /opt/mean.js/bower.json
69-
ADD .bowerrc /opt/mean.js/.bowerrc
68+
COPY bower.json /opt/mean.js/bower.json
69+
COPY .bowerrc /opt/mean.js/.bowerrc
7070
RUN bower install --quiet --allow-root --config.interactive=false
7171

7272
# Set development environment as default
7373
ENV NODE_ENV production
7474

75-
ADD . /opt/mean.js
75+
COPY . /opt/mean.js
7676

7777
# Run MEAN.JS server
78-
CMD ["npm","run-script","start:prod"]
78+
CMD ["npm","run-script","start:prod"]

0 commit comments

Comments
 (0)