github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/images/runtimes/java11/Dockerfile (about) 1 FROM ubuntu:bionic 2 RUN apt-get update && apt-get install -y \ 3 autoconf \ 4 build-essential \ 5 curl \ 6 make \ 7 openjdk-11-jdk \ 8 unzip \ 9 zip 10 11 # Download the JDK test library. 12 WORKDIR /root 13 RUN set -ex \ 14 && curl -fsSL --retry 10 -o /tmp/jdktests.tar.gz http://hg.openjdk.java.net/jdk-updates/jdk11u/archive/8b3498547395.tar.gz/test \ 15 && tar -xzf /tmp/jdktests.tar.gz \ 16 && mv jdk11u-8b3498547395/test test \ 17 && rm -f /tmp/jdktests.tar.gz 18 19 # Install jtreg and add to PATH. 20 RUN curl -o jtreg.tar.gz https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/lastSuccessfulBuild/artifact/jtreg-4.2.0-tip.tar.gz 21 RUN tar -xzf jtreg.tar.gz 22 ENV PATH="/root/jtreg/bin:$PATH"