From ae8d2b34df38c49261eb7ac34eb3acebfa8fc5d7 Mon Sep 17 00:00:00 2001 From: Federico Gonzalez Date: Sat, 1 Oct 2016 15:27:16 -0300 Subject: [PATCH] fix(docker) - Updated Dockerfile production (#1523) --- Dockerfile-production | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"]