fly-apps / dockerfile-rails

Provides a Rails generator to produce Dockerfiles and related files.
MIT License
455 stars 38 forks source link

Latest Rubygems no longer supports Ruby < 3 #83

Closed Antsiscool closed 5 months ago

Antsiscool commented 5 months ago

The following is failing when building with Ruby 2.7.8.

RUN gem update --system --no-document && \
    gem install -N bundler

Rubygems has dropped support for Ruby 2.6 and 2.7 in version 3.5.0. https://github.com/rubygems/rubygems/releases/tag/v3.5.0

This can be fixed by specifying the latest version of rubygems that is compatible with these version of Ruby. e.g.

RUN gem update --system 3.4.22 --no-document && \
    gem install -N bundler
rubys commented 5 months ago

Thanks! Released.