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

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frank-dspeed authored Sep 9, 2016
1 parent 38d92e3 commit e3e1839
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ WORKDIR /opt/mean.js
# and install node_modules/ everytime we build the docker, but only
# when the local package.json file changes.
# Install npm packages
ADD package.json /opt/mean.js/package.json
COPY package.json /opt/mean.js/package.json
RUN npm install --quiet && npm cache clean

# Install bower packages
ADD bower.json /opt/mean.js/bower.json
ADD .bowerrc /opt/mean.js/.bowerrc
COPY bower.json /opt/mean.js/bower.json
COPY .bowerrc /opt/mean.js/.bowerrc
RUN bower install --quiet --allow-root --config.interactive=false

ADD . /opt/mean.js
COPY . /opt/mean.js

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

0 comments on commit e3e1839

Please sign in to comment.