Created
March 25, 2017 22:45
-
-
Save hfm/707bb9171371f522b71889922cdb444a to your computer and use it in GitHub Desktop.
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 centos:7 | |
RUN yum install -y -q git gcc make bzip2 openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel | |
RUN git clone -q https://github.com/rbenv/rbenv.git /usr/local/rbenv | |
RUN git clone -q https://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build | |
ENV RBENV_ROOT "/usr/local/rbenv" | |
ENV RUBY_VERSION 2.2.6 | |
RUN /usr/local/rbenv/bin/rbenv install $RUBY_VERSION | |
CMD ["tar", "czf", "/tmp/rbenv_${RUBY_VERSION}.tgz", "/usr/local/rbenv/versions/${RUBY_VERSION}"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment