Dockerfile
and supporting scripts for running ruby code within a container.
build
- execute instructions within Dockerfile, install dependencies declared inGemfile
, creating theruby-base
containerrun
- execute command(s) withinruby-base
conatiner
$ ./bin/build
$ ./bin/run ruby lib/hello_world.rb
Add a gem to the Gemfile, then start the docs server.
source "https://rubygems.org"
gem "httparty"
$ ./bin/docs
# visit localhost:8808