Skip to content

Instantly share code, notes, and snippets.

@philkuz
Created August 24, 2016 00:20
Show Gist options
  • Save philkuz/22b3ab20e52b5a1cea0a8ca325ff9642 to your computer and use it in GitHub Desktop.
Save philkuz/22b3ab20e52b5a1cea0a8ca325ff9642 to your computer and use it in GitHub Desktop.
Ruby on Rails dockerfile
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