Last active
June 21, 2017 11:52
-
-
Save hfm/d73884f51c955df493faac05aa7fc95e to your computer and use it in GitHub Desktop.
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 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.4.1 | |
RUN /usr/local/rbenv/bin/rbenv install $RUBY_VERSION | |
RUN /usr/local/rbenv/bin/rbenv global $RUBY_VERSION | |
RUN /usr/local/rbenv/shims/gem i bundler --no-document | |
CMD ["tar", "czf", "/tmp/rbenv_2.4.1.tgz", "-C", "/usr/local/rbenv/versions/", "2.4.1"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment