Skip to content

Instantly share code, notes, and snippets.

@fxn
Last active June 6, 2020 11:13
Show Gist options
  • Save fxn/ed49292ed998345f5645cae597b9dba8 to your computer and use it in GitHub Desktop.
Save fxn/ed49292ed998345f5645cae597b9dba8 to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
# See https://github.com/oracle/truffleruby/blob/master/tool/docker-configs.yaml.
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
make \
gcc \
libssl-dev \
libz-dev \
ca-certificates \
aria2
# As recommended in https://hub.docker.com/_/ruby/.
ENV LANG C.UTF-8
ENV BUNDLE_JOBS 4
ENV BUNDLE_SILENCE_ROOT_WARNING 1
ARG ruby=truffleruby-20.1.0-linux-amd64
ARG tarball=$ruby.tar.gz
ENV PATH "/$ruby/bin:$PATH"
# Mirror domain from https://github.com/rbenv/ruby-build/blob/master/bin/ruby-build.
# Checksum taken from https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/truffleruby-20.1.0.
RUN aria2c -q -o $tarball https://dqw8nmjcqpjn7.cloudfront.net/aefae79abba2b21371754b103fba73d1b042f1ebc4a1b61fc0ca87eb016ee9c3
RUN tar xzf $tarball && rm $tarball
RUN /$ruby/lib/truffle/post_install_hook.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment