Skip to content

Instantly share code, notes, and snippets.

@alexzorin
Forked from shingara/Dockerfile
Last active December 18, 2015 23:49
Show Gist options
  • Save alexzorin/5864243 to your computer and use it in GitHub Desktop.
Save alexzorin/5864243 to your computer and use it in GitHub Desktop.
ruby-install fails without sudo, use ruby-install 0.2.0
FROM base
MAINTAINER Cyril Mougel "cyril.mougel@gmail.com"
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