Created
July 10, 2013 14:38
-
-
Save ismell/5966842 to your computer and use it in GitHub Desktop.
Installing ruby into a Docker image
This file contains 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
FROM cws/base:2013-07-01 | |
MAINTAINER Raul E. Rangel "[email protected]" | |
# Download the ruby-build code | |
RUN \curl -L https://github.com/sstephenson/ruby-build/archive/v20130518.tar.gz | tar -zxvf - -C /tmp/ | |
# Install ruby-build | |
RUN cd /tmp/ruby-build-* && ./install.sh && cd / && rm -rfv /tmp/ruby-build-master | |
# Install ruby | |
RUN ruby-build -v 1.9.3-p429 /usr/local | |
# Install gems | |
RUN gem install bundler rubygems-bundler --no-rdoc --no-ri | |
# Regenerate binstubs | |
RUN gem regenerate_binstubs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @grosser and @ismell, it helped !