fix(docker) - Updated Dockerfile production (#1523)

This commit is contained in:
Federico Gonzalez
2016-10-01 15:27:16 -03:00
committed by Cody B. Daig
parent a7aebbd866
commit ae8d2b34df

View File

@@ -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"]
CMD ["npm","run-script","start:prod"]