Last active
June 6, 2020 11:13
-
-
Save fxn/ed49292ed998345f5645cae597b9dba8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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