Move grunt npm install before ADDs, so we don't have to download all the packages on every build
This commit is contained in:
parent
408fd229a7
commit
6deafe8c86
1 changed files with 5 additions and 2 deletions
|
@ -22,15 +22,18 @@ RUN apt-get remove -y --auto-remove python-dev g++ libjpeg62-dev libevent-dev li
|
|||
ADD binary_dependencies binary_dependencies
|
||||
RUN gdebi --n binary_dependencies/*.deb
|
||||
|
||||
# Grunt
|
||||
# Install Grunt
|
||||
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
||||
RUN npm install -g grunt-cli
|
||||
|
||||
# Install Grunt depenencies
|
||||
ADD grunt grunt
|
||||
RUN cd grunt && npm install
|
||||
|
||||
# Add all of the files!
|
||||
ADD . .
|
||||
|
||||
# Run grunt
|
||||
RUN cd grunt && npm install
|
||||
RUN cd grunt && grunt
|
||||
|
||||
ADD conf/init/svlogd_config /svlogd_config
|
||||
|
|
Reference in a new issue