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
# we'll use an existent image which already have ruby installed | |
FROM ruby:2.3.0 | |
# creating our app folder | |
RUN mkdir /myapp | |
# move to this folder | |
WORKDIR /myapp | |
# move the Gemfile to our app's root folder | |
ADD Gemfile /myapp/Gemfile | |
# move the Gemfile.lock too | |
ADD Gemfile.lock /myapp/Gemfile.lock | |
# updates the system gem | |
RUN gem update --system | |
# run bundle install for production | |
RUN bundle install --without development test | |
# copy my code's folder to myapp | |
ADD . /myapp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment