You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated the multi-stage-builds Docker concept to include installing J… (#21206)
Updated the multi-stage-builds Docker concept page to include a
prerequisite for Java. Also updated the link and screenshot for the
Spring Initializer to the latest version.
Copy file name to clipboardExpand all lines: content/get-started/docker-concepts/building-images/multi-stage-builds.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,10 +57,12 @@ In this hands-on guide, you'll unlock the power of multi-stage builds to create
57
57
58
58
1.[Download and install](https://www.docker.com/products/docker-desktop/) Docker Desktop.
59
59
60
-
2.Open this [pre-initialized project](https://start.spring.io/#!type=maven-project&language=java&platformVersion=3.3.0-M3&packaging=jar&jvmVersion=21&groupId=com.example&artifactId=spring-boot-docker&name=spring-boot-docker&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.spring-boot-docker&dependencies=web) to generate a ZIP file. Here’s how that looks:
60
+
2.[Download and install](https://www.oracle.com/java/technologies/downloads/) Java.
61
61
62
+
3. Open this [pre-initialized project](https://start.spring.io/#!type=maven-project&language=java&platformVersion=3.4.0-M3&packaging=jar&jvmVersion=21&groupId=com.example&artifactId=spring-boot-docker&name=spring-boot-docker&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.spring-boot-docker&dependencies=web) to generate a ZIP file. Here’s how that looks:
62
63
63
-

64
+
65
+

64
66
65
67
66
68
[Spring Initializr](https://start.spring.io/) is a quickstart generator for Spring projects. It provides an extensible API to generate JVM-based projects with implementations for several common concepts — like basic language generation for Java, Kotlin, and Groovy.
@@ -70,7 +72,7 @@ In this hands-on guide, you'll unlock the power of multi-stage builds to create
70
72
For this demonstration, you’ve paired Maven build automation with Java, a Spring Web dependency, and Java 21 for your metadata.
71
73
72
74
73
-
3. Navigate the project directory. Once you unzip the file, you'll see the following project directory structure:
75
+
4. Navigate the project directory. Once you unzip the file, you'll see the following project directory structure:
74
76
75
77
76
78
```plaintext
@@ -107,7 +109,7 @@ In this hands-on guide, you'll unlock the power of multi-stage builds to create
107
109
contains most of the information needed to build a customized project. The POM is huge and can seem
108
110
daunting. Thankfully, you don't yet need to understand every intricacy to use it effectively.
109
111
110
-
4. Create a RESTful web service that displays "Hello World!".
112
+
5. Create a RESTful web service that displays "Hello World!".
111
113
112
114
113
115
Under the `src/main/java/com/example/spring_boot_docker/` directory, you can modify your
0 commit comments