Skip to content

Instantly share code, notes, and snippets.

@john-griffin
Created August 1, 2013 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-griffin/6131188 to your computer and use it in GitHub Desktop.
Save john-griffin/6131188 to your computer and use it in GitHub Desktop.
Basic rails Dockerfile
# DOCKER-VERSION 0.5.0
FROM ubuntu:12.04
RUN apt-get -y install python-software-properties
RUN add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
RUN apt-add-repository -y ppa:brightbox/ruby-ng-experimental
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get -y update
RUN apt-get -y install build-essential python g++ make ruby2.0 ruby2.0-dev nodejs
RUN gem install bundler
ADD . /
RUN bundle install --deployment
EXPOSE 3000
CMD bundle exec rails server -e production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment