A rebuild of the official ruby:X.Y.Z-trixie image (or -bookworm), for when a
Ruby security release is out and the official image hasn't been published yet (that usually takes
16 to 24 hours).
The Dockerfile is the Docker Library one
(docker-library/ruby) with the Ruby version and checksum
and the Debian suite turned into build args. Same base (buildpack-deps:trixie or :bookworm), same
configure flags (YJIT, ZJIT on Ruby 4.x, full RELRO), so zenjoy/ruby:4.0.9-trixie can stand in for
ruby:4.0.9-trixie.
Images are built for linux/amd64 and linux/arm64 and pushed to Docker Hub and GHCR:
docker pull zenjoy/ruby:4.0.9-trixie
docker pull ghcr.io/zenjoy/ruby:4.0.9-trixieTags: X.Y.Z-<suite> and X.Y-<suite>, with <suite> trixie or bookworm. There is no latest.
Stay on the official image by default. When a Ruby release fixes something you can't wait for:
- Run the Build Ruby image workflow with the version, the
SHA256 of
ruby-X.Y.Z.tar.xzfrom the ruby-lang.org release post, and the Debian suite your app uses. The workflow also checks the SHA256 againstcache.ruby-lang.org/pub/ruby/index.txt. - Point the app's base image at
zenjoy/ruby:X.Y.Z-<suite>. - Switch back to
ruby:X.Y.Z-<suite>once the official image is published.
Nothing rebuilds these images on a schedule, so they don't pick up Debian security updates after they're built. Don't stay on one longer than needed.
When docker-library changes its template (new rustup or Rust pin, configure flags, cleanup steps), copy the change into the Dockerfile. Pull requests build the trixie image for both platforms and run a smoke test, without pushing.
Older zenjoy/ruby tags without a suite suffix (3.3.10, 4.0.1, ...) came from the
previous bullseye-slim build and are no longer updated.
Images are signed with Cosign using keyless signatures. To verify one:
cosign verify \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp https://github.com/zenjoy/docker-ruby/.github/workflows/ \
zenjoy/ruby:4.0.9-trixieView license information for the software contained in this image.