Skip to content

Instantly share code, notes, and snippets.

@aphexddb
Created June 27, 2014 17:19
Show Gist options
  • Save aphexddb/985e9883ced3e43730cf to your computer and use it in GitHub Desktop.
Save aphexddb/985e9883ced3e43730cf to your computer and use it in GitHub Desktop.
Ruby with rbenv in Docker
# install ruby
ENV RUBY_VERSION jruby-1.7.8
ENV RBENV_VERSION $RUBY_VERSION
ENV CONFIGURE_OPTS --disable-install-doc
RUN curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
ENV PATH $HOME/.rbenv/bin:$PATH
ENV PATH $HOME/.rbenv/shims:$PATH
RUN rbenv install $RUBY_VERSION
RUN rbenv global $RUBY_VERSION
# Install bundler
RUN echo 'gem: --no-rdoc --no-ri' >> $HOME/.gemrc
RUN gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment