Created
October 16, 2015 10:08
-
-
Save shearluck/e4efb4fb763dd9044ce7 to your computer and use it in GitHub Desktop.
Sample ruby docker app
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.3 | |
RUN bundle config --global frozen 1 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY app.rb /usr/src/app/ | |
COPY Gemfile /usr/src/app/ | |
COPY Gemfile.lock /usr/src/app/ | |
RUN export https_proxy=[https://....] bundle install | |
RUN chmod +x /usr/src/app/app.rb | |
CMD ["ruby", "./app.rb"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment