From fd3d1689bfc714d42691135911503f00922735cf Mon Sep 17 00:00:00 2001 From: Matthew Buckett Date: Tue, 7 Oct 2025 16:30:27 +0100 Subject: [PATCH 1/2] AB#94461 Upgrade to Java 21 distroless image. This switches to Java 21, but also changes the docker image to be distroless so that we don't have as many bundled applications that we don't need which cause security alerts. --- .java-version | 2 +- pom.xml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.java-version b/.java-version index 8e2afd3..b5045cc 100644 --- a/.java-version +++ b/.java-version @@ -1 +1 @@ -17 \ No newline at end of file +21 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 19d189c..e9630cb 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ - 17 + 21 latest unknown @@ -241,7 +241,7 @@ com.google.cloud.tools jib-maven-plugin - 3.3.1 + 3.4.6 @@ -259,8 +259,7 @@ - - eclipse-temurin:17.0.8.1_1-jre-jammy + gcr.io/distroless/java21-debian12 arm64 From ee1db5a89624a0e4d432fdd159b61f8199b80f6a Mon Sep 17 00:00:00 2001 From: Matthew Buckett Date: Tue, 7 Oct 2025 16:41:25 +0100 Subject: [PATCH 2/2] AB#94461 Fix the user who is used --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e9630cb..96bc293 100644 --- a/pom.xml +++ b/pom.xml @@ -280,7 +280,7 @@ - nobody:nogroup + nonroot:nonroot