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

Commit e3e1839

Browse files
authored
Updated Dockerfile
Use copy and not add. Add is a special command used for some unzip and permission magic that you shouldn't use if you don't know what it is.
1 parent 38d92e3 commit e3e1839

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ WORKDIR /opt/mean.js
6464
# and install node_modules/ everytime we build the docker, but only
6565
# when the local package.json file changes.
6666
# Install npm packages
67-
ADD package.json /opt/mean.js/package.json
67+
COPY package.json /opt/mean.js/package.json
6868
RUN npm install --quiet && npm cache clean
6969

7070
# Install bower packages
71-
ADD bower.json /opt/mean.js/bower.json
72-
ADD .bowerrc /opt/mean.js/.bowerrc
71+
COPY bower.json /opt/mean.js/bower.json
72+
COPY .bowerrc /opt/mean.js/.bowerrc
7373
RUN bower install --quiet --allow-root --config.interactive=false
7474

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

7777
# Run MEAN.JS server
7878
CMD ["npm", "start"]

0 commit comments

Comments
 (0)