diff --git a/.tool-versions b/.tool-versions index d99a67f..d1436d6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ -ruby 3.2.2 +ruby 3.3.0 nodejs 21.6.1 yarn 1.13.0 diff --git a/Dockerfile b/Dockerfile index 1ba02d1..229619f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,12 @@ RUN asdf plugin add ruby \ && asdf plugin add yarn COPY --chown=app .tool-versions /home/app/ -RUN asdf install +# REMOVE ME: Workaround for https://bugs.ruby-lang.org/issues/20085. +# The RUBY_APPLY_PATCHES var should be removed either when ruby is +# upgraded to a version >3.3.0 or a newer version of ruby-build is +# available to asdf-ruby which includes the backported patch to ruby +# 3.3.0. +RUN RUBY_APPLY_PATCHES="https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/9371.diff" asdf install ENV BUNDLER_VERSION=2.4.10 RUN gem install bundler --version $BUNDLER_VERSION diff --git a/Gemfile b/Gemfile index 315b3df..201b7eb 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } -ruby '3.2.2' +ruby '3.3.0' gem 'bootsnap', '>= 1.1.0', require: false gem 'coffee-rails', '~> 5.0'