A simple base image for Ruby apps. Based on the excellent phusion/baseimage
.
- Packages for many common Gems (
libxml
,libpq
,build-essential
, etc) - rbenv at
/root/.rbenv
, and exported the proper$PATH
- Ruby 2.1.0
- Bundler
Extend this image with your own, using phusion/baseimage
's awesome
startup script support to bundle your gems, etc.
In production, you should create a data container to mount that wraps the rbenv directory so that you aren't reinstalling your bundle from scratch every time you deploy:
$ docker run --name GEM_DATA -v /root/.rbenv jlindsey/rubybase-docker true
$ docker run --name my_app --volumes-from GEM_DATA #...
Copyright (c) 2014 Josh Lindsey. See LICENSE for details.