Last active
December 30, 2015 18:09
-
-
Save juniorz/7865680 to your computer and use it in GitHub Desktop.
Ruby 2.0 (base)
This file contains hidden or 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
# ------------------------------------------------------------------- | |
# $ docker build -t garage-env/ruby20-base git://gist.github.com/7865680.git | |
# ------------------------------------------------------------------- | |
FROM garage-env/base | |
MAINTAINER Reinaldo Junior <[email protected]> | |
## 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