mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-22 15:22:34 +01:00
fix(docker) - Updated Dockerfile production (#1523)
This commit is contained in:
committed by
Cody B. Daig
parent
a7aebbd866
commit
ae8d2b34df
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user