dockerfile
FROM ubuntu:14.04
MAINTAINER Yaodong Zhao
RUN apt-get install -y build-essential libssl-dev git nginx postgresql postgresql-contrib
RUN git clone https://github.com/sstephenson/rbenv.git .rbenv
RUN git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
ENV PATH ~/.rbenv/bin:~/.rbenv/bin:$PATH
RUN echo 'eval "$(rbenv init -)"' >> .bashrc
RUN rbenv install 2.1.2
RUN rbenv global 2.1.2
RUN gem install bundler --no-ri --no-rdoc