Skip to content

Instantly share code, notes, and snippets.

@antonlindstrom
Last active December 17, 2015 23:49
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 antonlindstrom/5691828 to your computer and use it in GitHub Desktop.
Save antonlindstrom/5691828 to your computer and use it in GitHub Desktop.
Example Ruby 2.0 Dockerfile
# Ruby 2.0
#
# VERSION 0.0.1
FROM ubuntu
MAINTAINER Anton Lindstrom "anton@alley.se"
RUN apt-get install -y build-essential
RUN apt-get install -y bison openssl wget
RUN apt-get install -y libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev
RUN apt-get install -y libyaml-dev libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
RUN apt-get install -y libcurl4-openssl-dev libopenssl-ruby
RUN apt-get install -y libx11-dev libffi-dev
RUN wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.gz -O /opt/ruby-2.0.0-p195.tar.gz
RUN tar xvzf /opt/ruby-2.0.0-p195.tar.gz -C /opt/
RUN cd /opt/ruby-2.0.0-p195 && ./configure
RUN cd /opt/ruby-2.0.0-p195 && make
RUN cd /opt/ruby-2.0.0-p195 && make test
RUN cd /opt/ruby-2.0.0-p195 && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment