mirror of https://github.com/halo-dev/halo
Upgrade to JDK/JRE 21 when building Docker image
Signed-off-by: John Niang <johnniang@foxmail.com>pull/5341/head
parent
2cf19a4581
commit
5fdf6c0af1
|
@ -1,4 +1,4 @@
|
||||||
FROM eclipse-temurin:17-jre as builder
|
FROM eclipse-temurin:21-jre as builder
|
||||||
|
|
||||||
WORKDIR application
|
WORKDIR application
|
||||||
ARG JAR_FILE=application/build/libs/*.jar
|
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>
|
MAINTAINER johnniang <johnniang@fastmail.com>
|
||||||
WORKDIR application
|
WORKDIR application
|
||||||
COPY --from=builder application/dependencies/ ./
|
COPY --from=builder application/dependencies/ ./
|
||||||
|
|
Loading…
Reference in New Issue