Skip to content

Instantly share code, notes, and snippets.

@shearluck
Created October 16, 2015 10:08
Show Gist options
  • Save shearluck/e4efb4fb763dd9044ce7 to your computer and use it in GitHub Desktop.
Save shearluck/e4efb4fb763dd9044ce7 to your computer and use it in GitHub Desktop.
Sample ruby docker app
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