Created
January 10, 2019 15:44
-
-
Save jtdowney/e49cb7ea56610613aced03494635d4f9 to your computer and use it in GitHub Desktop.
Simple dockerfile for OpenJDK 11
This file contains 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 debian:stretch-slim | |
ENV OPENJDK_MAJOR=11 | |
ENV OPENJDK_VERSION=11.0.1 | |
ENV JAVA_HOME=/opt/jdk-${OPENJDK_VERSION} | |
ENV PATH=$JAVA_HOME/bin:$PATH | |
ADD https://download.java.net/java/GA/jdk${OPENJDK_MAJOR}/13/GPL/openjdk-${OPENJDK_VERSION}_linux-x64_bin.tar.gz /tmp/ | |
RUN tar -C /opt -xf /tmp/openjdk-${OPENJDK_VERSION}_linux-x64_bin.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment