Project

General

Profile

Bug #15232 ยป Dockerfile

wanabe (_ wanabe), 10/18/2018 11:39 PM

 
FROM centos:6

RUN yum install -y git gcc openssl-devel readline-devel libffi-devel libxml2-devel libxslt-devel

RUN git clone https://github.com/sstephenson/rbenv.git /opt/rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git /opt/rbenv/plugins/ruby-build
RUN printf 'export RBENV_ROOT=/opt/rbenv\nexport PATH="/opt/rbenv/bin:$PATH"\neval "$(rbenv init -)"' \
> /etc/profile.d/rbenv.sh
# RUN . /etc/profile.d/rbenv.sh && rbenv install 2.5.3

    (1-1/1)