Upgrade to JDK/JRE 21 when building Docker image

Signed-off-by: John Niang <johnniang@foxmail.com>
pull/5341/head
John Niang 2024-02-06 16:50:26 +08:00
parent 2cf19a4581
commit 5fdf6c0af1
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jre as builder
FROM eclipse-temurin:21-jre as builder
WORKDIR application
ARG JAR_FILE=application/build/libs/*.jar
@ -7,7 +7,7 @@ RUN java -Djarmode=layertools -jar application.jar extract
################################
FROM ibm-semeru-runtimes:open-17-jre
FROM ibm-semeru-runtimes:open-21-jre
MAINTAINER johnniang <johnniang@fastmail.com>
WORKDIR application
COPY --from=builder application/dependencies/ ./