Docker image with rbenv. Based on phusion's baseimage
FROM macool/baseimage-rbenv-docker
# set $HOME environment variable
ENV HOME /root
# same:
# RUN echo "/root" > /etc/container_environment/HOME
# Use phusion's baseimage-docker's init system.
CMD ["/sbin/my_init"]
New ruby definitions may not be inside the base image's. In case we need a new one:
RUN bash -c 'cd /root/.rbenv && git pull'
RUN bash -c 'cd /root/.rbenv/plugins/ruby-build && git pull'
RUN rbenv install 2.2.1 && rm -rf /tmp/*
RUN rbenv global 2.2.1
RUN gem install bundler --no-ri --no-rdoc
RUN rbenv rehash