aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 80748e7a..e6d5dccf 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -2,14 +2,14 @@
2# 2#
3# SPDX-License-Identifier: EPL-2.0 3# SPDX-License-Identifier: EPL-2.0
4 4
5FROM public.ecr.aws/amazoncorretto/amazoncorretto:17-al2023-jdk AS jdk 5FROM public.ecr.aws/amazoncorretto/amazoncorretto:21-al2023-jdk AS jdk
6 6
7FROM --platform=$BUILDPLATFORM docker.io/eclipse-temurin:17-jdk-jammy AS jlink-base 7FROM --platform=$BUILDPLATFORM docker.io/eclipse-temurin:21-jdk-jammy AS jlink-base
8# Use the Ubuntu Jammy based Temurin image for JLink, because it already 8# Use the Ubuntu Jammy based Temurin image for JLink, because it already
9# contains the require objcopy tool for stripping debug symbols: 9# contains the require objcopy tool for stripping debug symbols:
10# https://github.com/docker-library/openjdk/issues/351 10# https://github.com/docker-library/openjdk/issues/351
11# We'll have to cross-jlink the JDK: https://stackoverflow.com/a/47611708 11# We'll have to cross-jlink the JDK: https://stackoverflow.com/a/47611708
12COPY --link --from=jdk /usr/lib/jvm/java-17-amazon-corretto /crossjdk 12COPY --link --from=jdk /usr/lib/jvm/java-21-amazon-corretto /crossjdk
13 13
14FROM --platform=$BUILDPLATFORM jlink-base AS jlink-amd64-on-amd64 14FROM --platform=$BUILDPLATFORM jlink-base AS jlink-amd64-on-amd64
15 15