Skip to content
This repository was archived by the owner on Aug 25, 2021. It is now read-only.

iJJi/docker-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-ruby

Build Status

Docker containers to build and host ruby applications. It's built on alpine linux so they're tiny!

It's on docker-hub and github

tags and links

  • latest, 2.5
  • latest-builder, 2.5

running

The base image is great to run simple ruby scripts or as a base for bundling an app

docker run --rm fingershock/ruby:latest ruby -e 'eval ["275617579627560222f60756e6d257279622b3566716c602f60756e682228647470737a3f2f276963747e27696478657265737562736f6e64756e647e236f6d6f21727f686c666f273034353832333f2271677f263238373234636434393562693563333034666134363363623464393035303461683533316564346f28656c6c6f677f627c6462292e227561646"].pack("h*")'
Hello World

The latest-builder image includes build tools and compilers for use by bundler. Use it to assemble dependencies into a shared vendor volume and then copy those files into a new image based on the runtime.

docker run --rm -v $PWD/test:/usr/src/app:rw fingershock/ruby:latest-builder bundle update
docker run --rm -v $PWD/test:/usr/src/app:rw fingershock/ruby:latest-builder bundle install --deployment
docker build -t testapp test
docker run --rm testapp bundle exec rackup --version

About

docker images for ruby built on alpine linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published