Skip to content

Instantly share code, notes, and snippets.

@907th
Created June 26, 2014 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 907th/81d342ae6242be6a0485 to your computer and use it in GitHub Desktop.
Save 907th/81d342ae6242be6a0485 to your computer and use it in GitHub Desktop.
907th/drone-ruby:2.1.2
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