Skip to content

Instantly share code, notes, and snippets.

@eterps
Created August 27, 2018 08:53
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 eterps/f67e2da88565270db6f8745c26043b29 to your computer and use it in GitHub Desktop.
Save eterps/f67e2da88565270db6f8745c26043b29 to your computer and use it in GitHub Desktop.
ruby-llvm on ubuntu 16.04 with recent llvm version 3.5
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y build-essential ruby-dev llvm-3.5 wget
RUN gem install bundler rake
RUN /bin/echo -e "source 'https://rubygems.org'\ngem 'ruby-llvm'" >Gemfile
RUN bundle install
RUN wget -nv https://raw.githubusercontent.com/ruby-llvm/ruby-llvm/master/samples/hello.rb
CMD bundle exec ruby hello.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment