Skip to content

Instantly share code, notes, and snippets.

@james-nesbitt
Last active April 26, 2016 13:19
Show Gist options
  • Save james-nesbitt/d79e2d24ed326ba0c7710ca4dfa6436d to your computer and use it in GitHub Desktop.
Save james-nesbitt/d79e2d24ed326ba0c7710ca4dfa6436d to your computer and use it in GitHub Desktop.
GRUNT-COMPASS-DOCKERFILE
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"]
@james-nesbitt
Copy link
Author

james-nesbitt commented Apr 26, 2016

re-ordered the npm install for grunt-cli and grunt. Previous order gave dependency error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment