Ruby 4.0.9, in the image and the flake
Move the production image to ruby:4.0.9-slim-bookworm (same distro, so native gems build against the same libraries) and the dev shell to nixpkgs' ruby_4_0, also 4.0.9, so the tests run on the Ruby that ships. Ruby 4's Bundler 4 dropped `bundle install --without`; set BUNDLE_WITHOUT instead, which Bundler 2 reads too. The lockfile stays BUNDLED WITH 2.7.2 (nixpkgs' bundler; Bundler 4 switches to it). Checked before merging: the image builds, keeps the test gems out, and boots Puma 8.0.2 on Ruby 4.0.9 through to opening the database. Rollback: revert this commit and redeploy (or re-tag the previous image). Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
768b10e121
commit
7b344540fe
1 changed files with 8 additions and 7 deletions
|
|
@ -176,7 +176,7 @@ DEPENDENCIES
|
|||
sinatra-contrib (~> 4.2)
|
||||
|
||||
RUBY VERSION
|
||||
ruby 3.4.9p82
|
||||
ruby 4.0.9p0
|
||||
|
||||
BUNDLED WITH
|
||||
2.7.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue