2023-04-18 17:45:45 UTC
289 MB
/opt/java/openjdk
JAVA_VERSIONjdk-11.0.18+10
LANGen_US.UTF-8
LANGUAGEen_US:en
LC_ALLen_US.UTF-8
PATH/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
containeroci
[#000] sha256:d46336f50433ab27336fad8f9b251b2f68a66d376c902dfca23a6851acae502c - 12.97% (37.5 MB)
[#001] sha256:be961ec6866344c06fe85e53011321da508bc495513bb75a45fc41f6182921b6 - 0.0% (1.69 KB)
[#002] sha256:bdbfb97d5315df0a7a115fc8b3dc21be995236a3c251a6952b9122819704dd23 - 26.51% (76.6 MB)
[#003] sha256:8b714927aa67fdc2ce57fe902178e0e3cda06088d77f84b13cfb187ebd6183d5 - 0.0% (4.98 KB)
[#004] sha256:d0bb5c47d9707ad2a625a24097aca12cb6631e9492336997504344199a0d64a8 - 60.52% (175 MB)
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
2023-04-18 17:45:37 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c microdnf install -y tzdata openssl curl ca-certificates fontconfig glibc-langpack-en gzip tar && microdnf update -y; microdnf clean all # buildkit
2023-04-18 17:45:37 UTC (buildkit.dockerfile.v0)LABEL name=AdoptOpenJDK Java vendor=AdoptOpenJDK version=jdk-11.0.18+10 release=11 run=docker run --rm -ti <image_name:tag> /bin/bash summary=AdoptOpenJDK Docker Image for OpenJDK with hotspot and ubi-minimal description=For more information on this image please see https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/README.md
2023-04-18 17:45:37 UTC (buildkit.dockerfile.v0)ENV JAVA_VERSION=jdk-11.0.18+10
2023-04-18 17:45:37 UTC (buildkit.dockerfile.v0)COPY slim-java* /usr/local/bin/ # buildkit
2023-04-18 17:45:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ARCH="$(uname -m)"; case "${ARCH}" in aarch64|arm64) ESUM='04d5eeff6a6449bcdca0f52cd97bafd43ce09d40ef1e73fa0e1add63bea4a9c8'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.18_10.tar.gz'; ;; ppc64el|ppc64le) ESUM='459148d489b08ceec2d901e950ac36722b4c55e907e979291ddfc954ebdcea47'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.18_10.tar.gz'; ;; s390x) ESUM='7a7193c8279dd889c0a39296bcbae8866d94cff7a6d1bdfe676ffe4ced018915'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.18_10.tar.gz'; ;; amd64|x86_64) ESUM='4a29efda1d702b8ff38e554cf932051f40ec70006caed5c4857a8cbc7a0b7db7'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.18_10.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; mkdir -p /opt/java/openjdk; cd /opt/java/openjdk; tar -xf /tmp/openjdk.tar.gz --strip-components=1; export PATH="/opt/java/openjdk/bin:$PATH"; microdnf install -y binutils; /usr/local/bin/slim-java.sh /opt/java/openjdk; microdnf remove -y binutils; microdnf clean all; rm -rf /tmp/openjdk.tar.gz; # buildkit
2023-04-18 17:45:45 UTC (buildkit.dockerfile.v0)ENV JAVA_HOME=/opt/java/openjdk PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-04-18 17:45:45 UTC (buildkit.dockerfile.v0)CMD ["jshell"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.