diff options
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 6 |
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 | ||
5 | FROM public.ecr.aws/amazoncorretto/amazoncorretto:17-al2023-jdk AS jdk | 5 | FROM public.ecr.aws/amazoncorretto/amazoncorretto:21-al2023-jdk AS jdk |
6 | 6 | ||
7 | FROM --platform=$BUILDPLATFORM docker.io/eclipse-temurin:17-jdk-jammy AS jlink-base | 7 | FROM --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 |
12 | COPY --link --from=jdk /usr/lib/jvm/java-17-amazon-corretto /crossjdk | 12 | COPY --link --from=jdk /usr/lib/jvm/java-21-amazon-corretto /crossjdk |
13 | 13 | ||
14 | FROM --platform=$BUILDPLATFORM jlink-base AS jlink-amd64-on-amd64 | 14 | FROM --platform=$BUILDPLATFORM jlink-base AS jlink-amd64-on-amd64 |
15 | 15 | ||