A minimalist 🐬 docker image for Ruby based on latest Alpine Linux.
This image is not based on ruby:alpine. Using this image you're able to use the latest Alpine Linux version and install any ruby version.
- 🐳 Lightweight docker image based on top of latest Alpine Linux image;
- 💎 Supports any Ruby version (Don't need pull other image version);
- 📦 Ready to bundler usage;
- 🐘 Ready to PostgreSQL usage (if you use pg gem);
- 🔨 Ready to build gem with native extensions (like Nokogiri);
- Ready to use gem pry-debugger (contains Readline)
- 😛 Ready to run Rails + PostgreSQL application.
By default, if you not specify a Ruby version, it will install latest ruby version
You may pass the argument RUBY_VERSION
with specific Ruby version when build your Docker image (based on this image) or Docker Compose. Like:
When you build a Docker image from a Dockerfile
docker build -t "my-alpine-ruby" . --build-arg RUBY_VERSION=2.3.1
Docker-compose
version: '3'
services:
...
web:
...
build:
context: .
args:
- RUBY_VERSION=2.3.1
...
...
Built with ❤️ by Leonardo Flores ([email protected])