Project

General

Profile

Bug #15232 ยป Dockerfile

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

 
1
FROM centos:6
2

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

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