FROM ubuntu
#
# prepare
#
RUN apt-get update && \
apt-get upgrade -y
#
# utils
#
RUN apt-get install -y curl wget git sudo
#
# rvm
#
RUN apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev && \
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 && \
curl -sSL https://get.rvm.io | bash -s stable && \
source /usr/local/rvm/scripts/rvm
#
# rbenv
#
# RUN apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev && \
# git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv && \
# git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build && \
# echo 'export RBENV_ROOT="/usr/local/rbenv"' >> $HOME/.bashrc && \
# echo 'export PATH="${RBENV_ROOT}/bin:${PATH}"' >> $HOME/.bashrc && \
# echo 'eval "$(rbenv init -)"' >> $HOME/.bashrc && \
# source ~/.bashrc && \
# rbenv rehash
#
# ruby
#
ENV RUBY_VERSION=2.3.3
RUN rvm install $RUBY_VERSION && \
rvm --default use $RUBY_VERSION
Content type
Unrecognized
Digest
Size
337.2 MB
Last updated
almost 10 years ago
docker pull cuon/ruby