Skip to content

Instantly share code, notes, and snippets.

@mustela mustela/Dockerfile
Created Jun 26, 2015

What would you like to do?
Rails Dockerfile
# Base image
FROM ruby:latest
ENV HOME /home/rails/webapp
# Install PGsql dependencies and js engine
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
# Install gems
ADD Gemfile* $HOME/
RUN bundle install
# Add the app code
# Default command
CMD ["rails", "server", "--binding", ""]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.