Skip to content

Instantly share code, notes, and snippets.

@gregstewart
Last active August 29, 2015 14:09
Show Gist options
  • Save gregstewart/b70f15f53edb09d0bdda to your computer and use it in GitHub Desktop.
Save gregstewart/b70f15f53edb09d0bdda to your computer and use it in GitHub Desktop.
Dockerfile
# This is a comment
FROM ubuntu:14.04
MAINTAINER Greg Stewart <gregs@tcias.co.uk>
RUN apt-get update && apt-get install -y curl --assume-yes
RUN \curl -sSL https://get.rvm.io | bash
RUN echo 'source /etc/profile.d/rvm.sh' >> ~/.bashrc
RUN /usr/local/rvm/bin/rvm-shell -c "rvm requirements"
# install Ruby
RUN /usr/local/rvm/bin/rvm-shell -c "rvm autolibs enable"
RUN /usr/local/rvm/bin/rvm-shell -c "rvm install 2.1.4"
RUN /usr/local/rvm/bin/rvm-shell -c "rvm --default use 2.1.4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment