Skip to content

Instantly share code, notes, and snippets.

@ap4y
Last active August 29, 2015 14:07
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 ap4y/5898324ee8cc5a4d3488 to your computer and use it in GitHub Desktop.
Save ap4y/5898324ee8cc5a4d3488 to your computer and use it in GitHub Desktop.
FROM ubuntu
# Install prerequisites
RUN apt-get update
RUN locale-gen en_US.UTF-8
RUN apt-get install -y build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev git imagemagick
# Install ruby
ADD http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz ruby-2.1.2.tar.gz
RUN tar -xzvf ruby-2.1.2.tar.gz
WORKDIR ruby-2.1.2
RUN ./configure
RUN make
RUN make install
RUN gem install bundler
# Clean
WORKDIR /
RUN rm -rf ruby-2.1.2
RUN rm -rf ruby-2.1.2.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment