-
-
Save alexzorin/5864243 to your computer and use it in GitHub Desktop.
ruby-install fails without sudo, use ruby-install 0.2.0
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
FROM base | |
MAINTAINER Cyril Mougel "[email protected]" | |
RUN apt-get update | |
RUN apt-get install -q -y wget | |
RUN apt-get install -q -y ca-certificates | |
RUN apt-get install -q -y make | |
RUN apt-get install -q -y sudo | |
## Ruby-install | |
RUN wget -O ruby-install-0.2.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.2.0.tar.gz | |
RUN tar -xzvf ruby-install-0.2.0.tar.gz | |
## install ruby 2.0.0 | |
RUN cd ruby-install-0.2.0 && make install | |
RUN ruby-install ruby 2.0.0 -i /opt/rubies/ruby-2.0.0 | |
ENV PATH /opt/rubies/ruby-2.0.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment