Created
June 26, 2014 18:16
-
-
Save 907th/81d342ae6242be6a0485 to your computer and use it in GitHub Desktop.
907th/drone-ruby:2.1.2
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
FROM bradrydzewski/base | |
WORKDIR /home/ubuntu | |
USER ubuntu | |
ADD rbenv.sh /etc/drone.d/ | |
RUN cd /home/ubuntu/.rbenv/plugins/ruby-build && \ | |
git pull | |
RUN export PATH="/home/ubuntu/.rbenv/bin:$PATH" && \ | |
rbenv install 2.1.2 && \ | |
rbenv global 2.1.2 && \ | |
rbenv rehash | |
# See https://github.com/sstephenson/ruby-build/issues/592 | |
RUN sudo chown -R -f ubuntu:ubuntu /home/ubuntu/.rbenv/versions/2.1.2 | |
RUN export PATH="/home/ubuntu/.rbenv/bin:$PATH" && \ | |
eval "$(rbenv init -)" && \ | |
gem install bundler && \ | |
rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment