Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # we'll use an existent image which already have ruby installed
  2. FROM ruby:2.3.0
  3. # creating our app folder
  4. RUN mkdir /myapp
  5. # move to this folder
  6. WORKDIR /myapp
  7. # move the Gemfile to our app's root folder
  8. ADD Gemfile /myapp/Gemfile
  9. # move the Gemfile.lock too
  10. ADD Gemfile.lock /myapp/Gemfile.lock
  11. # updates the system gem
  12. RUN gem update --system
  13. # run bundle install for production
  14. RUN bundle install --without development test
  15. # copy my code's folder to myapp
  16. ADD . /myapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement