Last active
April 26, 2016 13:19
-
-
Save james-nesbitt/d79e2d24ed326ba0c7710ca4dfa6436d to your computer and use it in GitHub Desktop.
GRUNT-COMPASS-DOCKERFILE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jamesnesbitt/wunder-base | |
USER root | |
# install ruby stuff | |
RUN /usr/bin/yum install --assumeyes ruby ruby-devel rubygem-bundler | |
# Install nodejs and npm | |
RUN /usr/bin/yum install --assumeyes nodejs npm | |
# add theme files to image | |
# | |
# @TODO include only the files that we actually need to include dependencies | |
# | |
ADD . /app/project | |
RUN rm -rf /app/projectnode_modules && \ | |
mkdir /app/project/node_modules && \ | |
chown app:app /app/project/node_modules | |
# Change to projet path for the following commands | |
WORKDIR /app/project | |
USER app | |
# Run the ruby bundler | |
RUN bundle install | |
# run npm install | |
RUN npm update --save-dev | |
# set image command | |
USER app | |
ENTRYPOINT ["grunt"] | |
CMD ["watch"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
re-ordered the npm install for grunt-cli and grunt. Previous order gave dependency error