Last active
August 16, 2018 12:39
-
-
Save nickwu241/3328e47b44270fe2abd9881097b2fe8b to your computer and use it in GitHub Desktop.
Simple Ruby on Rails Dockerfile - https://docs.google.com/presentation/d/1-zbeD9s1LrVjGWqASR47JzMuNGdWoBdsF4c7QZIaA-E/edit#slide=id.p
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.5 | |
WORKDIR /app | |
RUN apt-get update && apt-get install -y build-essential nodejs | |
COPY Gemfile Gemfile.lock ./ | |
RUN gem install bundler && bundle install | |
COPY . ./ | |
EXPOSE 3000 | |
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment