% docker-compose up
...
Step 5/10 : RUN bundle install
---> Running in 12895c9ab2bd
Bundler 2.3.25 is running, but your lockfile was generated with 2.2.2. Installing Bundler 2.2.2 and restarting using that version.
Fetching gem metadata from https://rubygems.org/.
Fetching bundler 2.2.2
Installing bundler 2.2.2
Fetching gem metadata from https://rubygems.org/.........
ruby_dep-1.5.0 requires ruby version >= 2.2.5, ~> 2.2, which is incompatible
with the current version, ruby 3.1.1p18
The command '/bin/sh -c bundle install' returned a non-zero code: 5
ERROR: Service 'server' failed to build : Build failed