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

Commit

Permalink
fix(docker) - Updated Dockerfile production (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeG authored and codydaig committed Oct 1, 2016
1 parent a7aebbd commit ae8d2b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile-production
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit ae8d2b3

Please sign in to comment.