Skip to content

Instantly share code, notes, and snippets.

@juniorz
Last active December 30, 2015 18:09
Show Gist options
  • Save juniorz/7865680 to your computer and use it in GitHub Desktop.
Save juniorz/7865680 to your computer and use it in GitHub Desktop.
Ruby 2.0 (base)
# -------------------------------------------------------------------
# $ docker build -t garage-env/ruby20-base git://gist.github.com/7865680.git
# -------------------------------------------------------------------
FROM garage-env/base
MAINTAINER Reinaldo Junior <juniorz@gmail.com>
## Installs Ruby 2.0.0 from Brightbox PPA
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3173AA6 &&\
echo deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu precise main > /etc/apt/sources.list.d/brightbox.list &&\
apt-get update &&\
/var/garage/install ruby2.0 ruby2.0-dev
# Installs minimum gems
RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc &&\
gem install rake bundler
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment