Created
August 24, 2016 00:20
-
-
Save philkuz/22b3ab20e52b5a1cea0a8ca325ff9642 to your computer and use it in GitHub Desktop.
Ruby on Rails dockerfile
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.3 | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
postgresql-client \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /usr/src/app | |
COPY Gemfile* ./ | |
RUN bundle install | |
COPY . . | |
EXPOSE 3000 | |
CMD ["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