Skip to content

Instantly share code, notes, and snippets.

@jpterry
Last active January 2, 2016 01:59
Show Gist options
  • Save jpterry/8233648 to your computer and use it in GitHub Desktop.
Save jpterry/8233648 to your computer and use it in GitHub Desktop.
Ruby 2.0.0-p353 on rbenv on wheezy on docker
FROM jpterry/debian-wheezy:wheezy
MAINTAINER "John Terry <jpterry@gmail.com>"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y build-essential git curl libssl-dev
RUN git clone https://github.com/sstephenson/rbenv.git /opt/rbenv
RUN mkdir /opt/rbenv/plugins
RUN git clone https://github.com/sstephenson/ruby-build.git /opt/rbenv/plugins/ruby-build
ADD rbenv.sh /etc/profile.d/rbenv.sh
RUN chmod +x /etc/profile.d/rbenv.sh
ENV RBENV_ROOT /opt/rbenv
RUN bash -l -c 'rbenv install 2.0.0-p353'
# rbenv setup
export RBENV_ROOT=/opt/rbenv
export PATH="$RBENV_ROOT/bin:$PATH"
eval "$(rbenv init -)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment