Skip to content

Commit

Permalink
fix(docker): more efficient dockerfile for changes strictly to packag…
Browse files Browse the repository at this point in the history
…es.json or bowerr.json
  • Loading branch information
lirantal committed Apr 1, 2016
1 parent 8da3725 commit 1bd42f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bd42f6

Please sign in to comment.