Skip to content

Instantly share code, notes, and snippets.

@yaodong
Created August 27, 2014 03:16
Show Gist options
  • Save yaodong/8c219f23cb8adfceaffd to your computer and use it in GitHub Desktop.
Save yaodong/8c219f23cb8adfceaffd 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