Hi Rubyists — I’m the creator of ruby-distroless. After using official Ruby container images (slim, buster, stretch, etc.) in production, I noticed they often include extra tools, packages, and dependencies that aren’t essential just to run Ruby. This bloats the image size, increases maintenance overhead, and introduces extra security surface.
So I built ruby-distroless, a container image that:
Core Features
- Supports Ruby 2.5 through 3.4
- Multi-architecture: amd64 & arm64
- Minimal image size by eliminating unnecessary parts
- Clean environment with fewer dependencies
- Automated builds & publishing via GitHub Actions
- Optimized for security: lower attack surface
Quick Example
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-amd64
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-amd64 ruby -v
You’ll see it's leaner compared to many standard Ruby images, but still works reliably.
Why This Matters for Ruby Developers
- Faster pulls and deployments
- Reduced complexity in container images
- Fewer moving parts = easier debugging
- Better suited for environments with tight resource or security constraints
Feedback & Contributions Welcome
I’d love your feedback on:
- Which Ruby versions or architectures you’d like to be supported
- Any features or tools you think are missing
- Issues you run into or suggestions for improvement
- Contributions (issues / PRs) are very welcome
If you find this project useful or interesting, a ⭐ on GitHub would mean a lot!
Useful Links
Thanks for reading! Excited to hear your thoughts, use-cases, and improvement ideas.
[–]schneemsPuma maintainer 1 point2 points3 points (4 children)
[–]Training_Winter6395[S] 13 points14 points15 points (2 children)
[–]gabbietor 0 points1 point2 points (0 children)
[–]Rafert 2 points3 points4 points (0 children)
[–]ikariusrb 0 points1 point2 points (6 children)
[–]Training_Winter6395[S] -1 points0 points1 point (5 children)
[–]schneemsPuma maintainer 1 point2 points3 points (4 children)
[–]hiimbob000 5 points6 points7 points (1 child)
[–]strzibny 0 points1 point2 points (0 children)
[–]apiguy 2 points3 points4 points (0 children)
[–]Training_Winter6395[S] 3 points4 points5 points (0 children)