Skip to content

Instantly share code, notes, and snippets.

@keeran
Created May 29, 2014 21:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeran/fb255f7cb8cfce937f78 to your computer and use it in GitHub Desktop.
Save keeran/fb255f7cb8cfce937f78 to your computer and use it in GitHub Desktop.
FROM ubuntu:12.04
RUN apt-get update
RUN apt-get install -y --force-yes build-essential curl git
RUN apt-get install -y --force-yes zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev
ADD http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz /tmp/ruby-2.1.0.tar.gz
RUN cd /tmp; \
tar xzf ruby-2.1.0.tar.gz; \
cd ruby-2.1.0; \
./configure --disable-install-rdoc; \
make; \
make install; \
gem install bundler foreman
RUN rm -rf /tmp/ruby-2.1.0*
RUN echo 'gem: --no-rdoc --no-ri' >> /root/.gemrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment