Docker: Ruby version upgrade from 2.2.0 to 2.4.0 Docker: Ruby version upgrade from 2.2.0 to 2.4.0 docker docker

Docker: Ruby version upgrade from 2.2.0 to 2.4.0


You can always build your own Docker image as such:

FROM ubuntuRUN apt-get updateRUN apt-get install -y build-essential wgetRUN wget --no-check-certificate -O ruby-install.tar.gz https://github.com/postmodern/ruby-install/archive/master.tar.gzRUN tar -xzvf ruby-install.tar.gzRUN cd ruby-install-master && make installRUN cd /RUN rm -rf ruby-install-master && rm -rf ruby-install.tar.gzRUN ruby-install --latestRUN ruby-install -i /usr/local/ ruby 2.4.0 -- --disable-install-docRUN gem update --system --no-documentRUN gem install bundler --force


depends on how one manages ruby application and ruby version. here are few things i would offer to check:

  1. update Gemfile if bundler is used

    $ cat Gemfile | head -n 1ruby '2.4.0'
  2. update .ruby-version if rbenv or [rvm][3] is used

    $ cat .ruby-version2.4.0
  3. update Dockerfile if docker is used

    $ cat Dockerfile | grep FROMFROM ruby:2.4.0