Created
May 10, 2015 16:00
-
-
Save tobytripp/1e138b0884eb21375e4b to your computer and use it in GitHub Desktop.
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 ruby:2.2.2 | |
RUN adduser app --home /home/app --shell /bin/bash --disabled-password --gecos "" | |
ADD Gemfile /home/app/ | |
ADD Gemfile.lock /home/app/ | |
RUN mkdir -p /var/bundle && chown -R app:app /var/bundle /usr/local/bundle | |
USER app | |
WORKDIR /home/app | |
RUN cd /home/app && bundle install --deployment --path /var/bundle | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment