Created
June 27, 2014 17:19
-
-
Save aphexddb/985e9883ced3e43730cf to your computer and use it in GitHub Desktop.
Ruby with rbenv in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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