Skip to content

Instantly share code, notes, and snippets.

@ktheory
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save ktheory/e5815665c73a0eaa021d to your computer and use it in GitHub Desktop.

Select an option

Save ktheory/e5815665c73a0eaa021d to your computer and use it in GitHub Desktop.
FROM ubuntu:14.04
MAINTAINER aaron@ktheory.com
RUN apt-get update
RUN apt-get install -y build-essential libssl-dev curl
# Install ruby-build
RUN export ruby_build_release=20140420 && \
curl -L https://github.com/sstephenson/ruby-build/archive/v$ruby_build_release.tar.gz | tar -C /tmp -zx && \
cd /tmp/ruby-build-$ruby_build_release && \
./install.sh && \
cd /tmp && \
rm -r /tmp/ruby-build-$ruby_build_release && \
mkdir -p /usr/local/ruby
# Install ruby 2.1.1
RUN ruby-build 2.1.1 /usr/local/ruby/2.1.1
RUN ruby-build 1.9.3-p545 /usr/local/ruby/1.9.3-p545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment