ruby2.3.X by rbenv. This image based centos/systemd.
302
FROM centos/systemd
RUN yum install -y git \
bzip2 \
gcc \
make \
openssl-devel \
readline-devel \
zlib-devel \
sudo \
&& yum clean all
# Install rbenv and ruby-build
RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
RUN ./root/.rbenv/plugins/ruby-build/install.sh
ENV PATH /root/.rbenv/bin:$PATH
RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh # or /etc/profile
ENV CONFIGURE_OPTS --disable-install-doc
RUN rbenv install 2.3.3
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
# Install ruby2.3.3
RUN rbenv global 2.3.3 && rbenv exec gem install bundler && rbenv rehash
Content type
Image
Digest
Size
157 MB
Last updated
over 9 years ago
docker pull hnmx4/c7-systemd-ruby:2.3.3