Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cjwilburn/429853843b055a02fe57fbaa15b3a1f2 to your computer and use it in GitHub Desktop.
Save cjwilburn/429853843b055a02fe57fbaa15b3a1f2 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment