Created
August 17, 2013 11:37
-
-
Save dpogorzelski/6256524 to your computer and use it in GitHub Desktop.
Docker file to build and run a Sinatra project
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.3 | |
FROM ubuntu:12.10 | |
RUN apt-get update | |
RUN apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config wget -y | |
RUN wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | |
RUN tar xvf ruby-2.0.0-p247.tar.gz | |
RUN cd ruby-2.0.0-p247; ./configure; make install | |
RUN gem update --system | |
RUN gem install bundler | |
ADD . /src | |
RUN cd /src; bundle install | |
EXPOSE 4567 | |
CMD ["ruby", "/src/app.rb"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment