Skip to content

Instantly share code, notes, and snippets.

@jtdowney
Created January 10, 2019 15:44
Show Gist options
  • Save jtdowney/e49cb7ea56610613aced03494635d4f9 to your computer and use it in GitHub Desktop.
Save jtdowney/e49cb7ea56610613aced03494635d4f9 to your computer and use it in GitHub Desktop.
Simple dockerfile for OpenJDK 11
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