Skip to content

Instantly share code, notes, and snippets.

@reiz
Created July 12, 2014 17:23
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 reiz/3cdbbd257208526fe51c to your computer and use it in GitHub Desktop.
Save reiz/3cdbbd257208526fe51c to your computer and use it in GitHub Desktop.
Dockerfile for MRI Ruby 2.1.2 on Ubuntu 13.10
FROM ubuntu:13.10
MAINTAINER Robert Reiz <reiz@versioneye.com>
RUN apt-get update
RUN apt-get upgrade -y -q
RUN apt-get install -y -q wget tree links2 gcc g++ make autoconf automake libssl-dev libcurl4-openssl-dev
RUN echo LC_ALL=en_US.UTF-8 >> /etc/environment
RUN export LC_ALL=en_US.UTF-8
RUN mkdir -p /opt
RUN wget -O /opt/openssl-1.0.1g.tar.gz https://www.openssl.org/source/openssl-1.0.1g.tar.gz
RUN cd /opt; tar -xzf openssl-1.0.1g.tar.gz
RUN cd /opt/openssl-1.0.1g; ./config
RUN cd /opt/openssl-1.0.1g; make
RUN cd /opt/openssl-1.0.1g; make install
RUN rm /usr/bin/openssl
RUN ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
RUN apt-get install -y -q openjdk-7-jdk
RUN apt-get install -y -q git
RUN apt-get install -y -q build-essential ruby-dev rake libreadline6 libreadline6-dev libssl-dev libncurses5-dev curl zlib1g zlib1g-dev libyaml-dev libxml2-dev libc6-dev libtool bison curl
RUN wget -O /opt/ruby-2.1.2.tar.gz http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
RUN cd /opt; tar -xzf ruby-2.1.2.tar.gz
RUN cd /opt/ruby-2.1.2; ./configure
RUN cd /opt/ruby-2.1.2; make
RUN cd /opt/ruby-2.1.2; make install
RUN gem install bundle
RUN cd /opt/ruby-2.1.2/ext/readline; ruby extconf.rb
RUN cd /opt/ruby-2.1.2/ext/readline; make
RUN cd /opt/ruby-2.1.2/ext/readline; make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment