Last active
August 29, 2015 14:07
-
-
Save ap4y/5898324ee8cc5a4d3488 to your computer and use it in GitHub Desktop.
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
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