Use eclipse-temurin in docker samples

As AdoptOpenJDK moved to the Eclipse Foundation, this commit updates the
docs to reflect that in docker file samples.

See gh-30748
pull/30878/head
rfigueroa 3 years ago committed by Stephane Nicoll
parent 1e32f3b718
commit ae267bfab2

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

Loading…
Cancel
Save