docker-alpine-ruby

Minimal Ruby docker image with native extensions support

Stars
4
Committers
1

Docker Alpine Ruby Image

This is the smallest possible Ruby docker image, with ability to build native extension gems.

This image is available in several alpine and ruby versions. See available tags.

# Start bash
$ docker run -it --rm dannyben/alpine-ruby

# Start IRB
$ docker run -it --rm dannyben/alpine-ruby irb

# Show gem environment
$ docker run --rm dannyben/alpine-ruby gem env

Development

Use the docker-compose to build and test:

$ docker compose build
$ docker compose run --rm version

Image is built using GitHub Actions by pushing a ruby version tag in the form of 3.1.0 without v as prefix, or via manual dispatch.