This image is based on Alpine Linux image, which is only a 5MB image, and contains Ruby 3.x.
This image is only 31MB on disk.
$ docker run --rm frolvlad/alpine-ruby ruby -e 'puts "Hello World"'
Once you have run this command you will get printed 'Hello World' from Ruby!