Created
August 1, 2013 13:14
-
-
Save john-griffin/6131188 to your computer and use it in GitHub Desktop.
Basic 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
# 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