DEPRECATED: Dockerfile to build alpine linux with specific ruby version
Please use the official ruby alpine Docker images, e.g.:
$ docker pull ruby:2.4-alpine
$ docker run --rm ruby:2.4-alpine ruby -e 'puts "Hello World"'
Also see this post for a tutorial on getting started with Docker and Ruby on Rails.
ruby 2.3.1
Dockerfile
ruby 2.3.0
Dockerfile
Based on alpine:3.3, ruby installed using ruby-install
bundler
and git
are installed as basic requirements.
To use this image (with Ruby 2.3.1):
docker run --rm cblunt/alpine-linux-ruby:2.3.1 ruby -e 'puts "Hello World"'