Skip to content

Commit 4e1d2ff

Browse files
committed
Update base image version in multi-stage Dockerfile build
the previous version was not reflecting the docs contents
1 parent 4494d89 commit 4e1d2ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/get-started/docker-concepts/building-images/multi-stage-builds.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
287287
288288
- The first stage remains the same as the previous Dockerfile, providing a Java Development Kit (JDK) environment for building the application. This stage is given the name of builder.
289289
290-
- The second stage is a new stage named `final`. It uses a slimmer `eclipse-temurin:21.0.2_13-jre-jammy` image, containing just the Java Runtime Environment (JRE) needed to run the application. This image provides a Java Runtime Environment (JRE) which is enough for running the compiled application (JAR file).
290+
- The second stage is a new stage named `final`. It uses a slimmer `eclipse-temurin:21.0.8_9-jre-jammy` image, containing just the Java Runtime Environment (JRE) needed to run the application. This image provides a Java Runtime Environment (JRE) which is enough for running the compiled application (JAR file).
291291
292292
293293
> For production use, it's highly recommended that you produce a custom JRE-like runtime using jlink. JRE images are available for all versions of Eclipse Temurin, but `jlink` allows you to create a minimal runtime containing only the necessary Java modules for your application. This can significantly reduce the size and improve the security of your final image. [Refer to this page](https://hub.docker.com/_/eclipse-temurin) for more information.
@@ -333,4 +333,3 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
333333
* [Dockerfile best practices](/develop/develop-images/dockerfile_best-practices/)
334334
* [Base images](/build/building/base-images/)
335335
* [Spring Boot Docker](https://spring.io/guides/topicals/spring-boot-docker)
336-

0 commit comments

Comments
 (0)