Skip to content

Instantly share code, notes, and snippets.

@quinn
Last active August 29, 2015 14:04
Show Gist options
  • Save quinn/6308586a23f06d6910c1 to your computer and use it in GitHub Desktop.
Save quinn/6308586a23f06d6910c1 to your computer and use it in GitHub Desktop.
rails
# DOCKER-VERSION 0.9.0
FROM ruby:latest
MAINTAINER Quinn Shanahan q.shanahan@gmail.com
# http://www.activestate.com/blog/2014/01/using-docker-run-ruby-rspec-ci-jenkins
RUN apt-get install postgresql-client-common
EXPOSE 3000
ONBUILD ADD . /usr/src/app
ONBUILD WORKDIR /usr/src/app
ONBUILD RUN [ ! -e Gemfile ] || bundle install --system
CMD rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment