Last active
January 2, 2016 01:59
-
-
Save jpterry/8233648 to your computer and use it in GitHub Desktop.
Ruby 2.0.0-p353 on rbenv on wheezy on docker
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 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' |
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
# 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