mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-19 22:42:44 +02:00
Merge pull request #1287 from lirantal/feature/docker-efficient-npm-bower-changes
Updating Dockerfile for more efficient image building
This commit is contained in:
@@ -33,12 +33,13 @@ WORKDIR /opt/mean.js
|
||||
# and utilities docker container cache to not needing to rebuild
|
||||
# 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
|
||||
RUN npm install --quiet
|
||||
|
||||
# Install bower packages
|
||||
ADD bower.json /opt/mean.js/bower.json
|
||||
ADD .bowerrc /opt/mean.js/.bowerrc
|
||||
|
||||
# Install MEAN.JS packages
|
||||
RUN npm install --quiet
|
||||
RUN bower install --quiet --allow-root --config.interactive=false
|
||||
|
||||
# Share local directory on the docker container
|
||||
|
||||
Reference in New Issue
Block a user