Skip to content

Commit fcab810

Browse files
committed
Use LTS Oracle JDK and add diagnostic tools
1 parent 3c350aa commit fcab810

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2017, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
44
# HOW TO BUILD THIS IMAGE
@@ -9,14 +9,14 @@
99
# -------------------------
1010
FROM ghcr.io/oracle/oraclelinux:9-slim AS jre-build
1111

12-
ENV JAVA_URL="https://download.java.net/java/GA/jdk20.0.2/6e380f22cbe7469fa75fb448bd903d8e/9/GPL/openjdk-20.0.2_linux-x64_bin.tar.gz"
12+
ENV JAVA_URL="https://download.oracle.com/java/17/archive/jdk-17.0.8_linux-x64_bin.tar.gz"
1313

1414
RUN set -eux; \
1515
microdnf -y install gzip tar; \
1616
curl -fL -o jdk.tar.gz "$JAVA_URL"; \
1717
mkdir -p /jdk; \
1818
tar --extract --file jdk.tar.gz --directory /jdk --strip-components 1; \
19-
/jdk/bin/jlink --verbose --compress 2 --strip-java-debug-attributes --no-header-files --no-man-pages --output jre --add-modules java.base,java.desktop,java.instrument,java.management,java.naming,java.net.http,java.sql,jdk.attach,jdk.jdi,jdk.unsupported,jdk.crypto.ec,jdk.zipfs
19+
/jdk/bin/jlink --verbose --compress 2 --strip-java-debug-attributes --no-header-files --no-man-pages --output jre --add-modules java.base,java.desktop,java.instrument,java.management,java.naming,java.net.http,java.sql,jdk.attach,jdk.jdi,jdk.unsupported,jdk.crypto.ec,jdk.zipfs,jdk.jcmd
2020

2121
FROM ghcr.io/oracle/oraclelinux:9-slim
2222

0 commit comments

Comments
 (0)