Skip to content

Instantly share code, notes, and snippets.

@macournoyer
Last active December 14, 2019 16:31
Show Gist options
  • Save macournoyer/5914837 to your computer and use it in GitHub Desktop.
Save macournoyer/5914837 to your computer and use it in GitHub Desktop.
Playing w/ Dockerfile on OS X
FROM base
MAINTAINER Marc-Andre Cournoyer "macournoyer@gmail.com"
RUN apt-get -y update
RUN apt-get install -y -q curl
RUN curl -L https://get.rvm.io | bash -s stable --ruby
RUN /bin/bash -l -c rvm requirements
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

To install Docker on OS X: Using Vagrant

To build the Dockerfile into an image

$ docker build -t ruby /where-you-put-Dockerfile
$ docker run ruby ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment