Skip to content

Instantly share code, notes, and snippets.

@juniorz
Last active December 30, 2015 18:18
Show Gist options
  • Save juniorz/7866174 to your computer and use it in GitHub Desktop.
Save juniorz/7866174 to your computer and use it in GitHub Desktop.
Ruby 2.0
# -------------------------------------------------------------------
# $ docker build -t garage-env/ruby20 git://gist.github.com/7866174.git
# -------------------------------------------------------------------
# $ echo 'puts "Hello"' > hello.rb
# $ docker run -v `pwd`:/garage -t garage-env/ruby20 foo.rb
# Heloo
# -------------------------------------------------------------------
FROM garage-env/ruby20-base
MAINTAINER Reinaldo Junior <juniorz@gmail.com>
USER garage
CMD ["--help"]
ENTRYPOINT ["/usr/bin/ruby"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment