Update dockerfile samples to use Java 17

See gh-33629
pull/33736/head
rfigueroa 2 years ago committed by Moritz Halbritter
parent 6a6ecad325
commit 2b3a24be18

@ -32,13 +32,13 @@ Here is an example of a Dockerfile using `jarmode`.
[source,dockerfile,indent=0,subs="verbatim"]
----
FROM eclipse-temurin:11-jre as builder
FROM eclipse-temurin:17-jre as builder
WORKDIR application
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract
FROM eclipse-temurin:11-jre
FROM eclipse-temurin:17-jre
WORKDIR application
COPY --from=builder application/dependencies/ ./
COPY --from=builder application/spring-boot-loader/ ./

Loading…
Cancel
Save