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
Couple of freshness updates to the Docker Concepts pages (#23361)
## Description
Couple of small freshness updates to the concepts pages.
Note that I didn't update any screenshots, despite many of them being
old. Most screenshots are still valid, but on older designs. Can do
another PR for screenshot updates if desired.
Copy file name to clipboardExpand all lines: content/get-started/docker-concepts/building-images/multi-stage-builds.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
152
152
2. In the `Dockerfile`, define your base image by adding the following line:
153
153
154
154
```dockerfile
155
-
FROM eclipse-temurin:21.0.2_13-jdk-jammy
155
+
FROM eclipse-temurin:21.0.8_9-jdk-jammy
156
156
```
157
157
158
158
3. Now, define the working directory by using the `WORKDIR` instruction. This will specify where future commands will run and the directory files will be copied inside the container image.
@@ -190,7 +190,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
190
190
And with that, you should have the following Dockerfile:
191
191
192
192
```dockerfile
193
-
FROM eclipse-temurin:21.0.2_13-jdk-jammy
193
+
FROM eclipse-temurin:21.0.8_9-jdk-jammy
194
194
WORKDIR /app
195
195
COPY .mvn/ .mvn
196
196
COPY mvnw pom.xml ./
@@ -268,15 +268,15 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
268
268
1. Consider the following Dockerfile:
269
269
270
270
```dockerfile
271
-
FROM eclipse-temurin:21.0.2_13-jdk-jammy AS builder
271
+
FROM eclipse-temurin:21.0.8_9-jdk-jammy AS builder
Copy file name to clipboardExpand all lines: content/get-started/docker-concepts/building-images/writing-a-dockerfile.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
@@ -22,7 +22,7 @@ A Dockerfile is a text-based document that's used to create a container image. I
22
22
As an example, the following Dockerfile would produce a ready-to-run Python application:
23
23
24
24
```dockerfile
25
-
FROM python:3.12
25
+
FROM python:3.13
26
26
WORKDIR /usr/local/app
27
27
28
28
# Install the application dependencies
@@ -69,7 +69,9 @@ In this quick hands-on guide, you'll write a Dockerfile that builds a simple Nod
69
69
70
70
### Set up
71
71
72
-
[Download this ZIP file](https://github.com/docker/getting-started-todo-app/raw/build-image-from-scratch/app.zip) and extract the contents into a directory on your machine.
72
+
[Download this ZIP file](https://github.com/docker/getting-started-todo-app/archive/refs/heads/build-image-from-scratch.zip) and extract the contents into a directory on your machine.
73
+
74
+
If you'd rather not download a ZIP file, clone the https://github.com/docker/getting-started-todo-app project and checkout the `build-image-from-scratch` branch.
73
75
74
76
### Creating the Dockerfile
75
77
@@ -87,7 +89,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
87
89
3. In the `Dockerfile`, define your base image by adding the following line:
88
90
89
91
```dockerfile
90
-
FROM node:20-alpine
92
+
FROM node:22-alpine
91
93
```
92
94
93
95
4. Now, define the working directory by using the `WORKDIR` instruction. This will specify where future commands will run and the directory files will be copied inside the container image.
@@ -117,7 +119,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`.
0 commit comments