diff --git a/Dockerfile-production b/Dockerfile-production index 9f4f53f4a4..735b2d4250 100644 --- a/Dockerfile-production +++ b/Dockerfile-production @@ -61,18 +61,18 @@ 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 NODE_ENV=development 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 # Set development environment as default ENV NODE_ENV production -ADD . /opt/mean.js +COPY . /opt/mean.js # Run MEAN.JS server -CMD ["npm","run-script","start:prod"] \ No newline at end of file +CMD ["npm","run-script","start:prod"]