FROM centos:7
RUN yum install -y man nano less
ENV RUBY_VER="2.6.3"
RUN yum -y update; yum -y install epel-release; yum -y install git make autoconf curl wget; yum -y install gcc-c++ glibc-headers openssl-devel readline libyaml-devel readline-devel zlib zlib-devel sqlite-devel bzip2
RUN yum clean all
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv RUN git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build
RUN echo 'export RBENV_ROOT="/usr/local/rbenv"' >> /etc/profile.d/rbenv.sh RUN echo 'export PATH="${RBENV_ROOT}/bin:${PATH}"' >> /etc/profile.d/rbenv.sh RUN echo 'eval "$(rbenv init --no-rehash -)"' >> /etc/profile.d/rbenv.sh
RUN source /etc/profile.d/rbenv.sh; rbenv install ${RUBY_VER}; rbenv global ${RUBY_VER}
Content type
Image
Digest
Size
293.9 MB
Last updated
about 7 years ago
docker pull nextrevolution/camp-ruby