From ae267bfab2c3056d402fccd5888413afd884cab8 Mon Sep 17 00:00:00 2001 From: rfigueroa <41128440+rfigueroa@users.noreply.github.com> Date: Tue, 19 Apr 2022 20:35:15 -0500 Subject: [PATCH] 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 --- .../src/docs/asciidoc/features/container-images.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/container-images.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/container-images.adoc index 8fae91b84f..8077d670b8 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/container-images.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/container-images.adoc @@ -89,13 +89,13 @@ Here's an example of a Dockerfile using `jarmode`. [source,dockerfile,indent=0,subs="verbatim"] ---- -FROM adoptopenjdk:11-jre-hotspot as builder +FROM eclipse-temurin:11-jre as builder WORKDIR application ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} application.jar RUN java -Djarmode=layertools -jar application.jar extract -FROM adoptopenjdk:11-jre-hotspot +FROM eclipse-temurin:11-jre WORKDIR application COPY --from=builder application/dependencies/ ./ COPY --from=builder application/spring-boot-loader/ ./