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
Copy file name to clipboardExpand all lines: content/manuals/build/concepts/dockerfile.md
+10-13Lines changed: 10 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ Here are the most common types of instructions:
25
25
|[`COPY <src> <dest>`](/reference/dockerfile.md#copy)| Copies new files or directories from `<src>` and adds them to the container at the path `<dest>`. |
26
26
|[`CMD <command>`](/reference/dockerfile.md#cmd)| Defines the default program that runs when you start the container. Only the last `CMD` in the Dockerfile is used if multiple exist. |
27
27
28
-
Dockerfiles are essential for image builds and can automate multi-layer image builds
29
-
based on your configuration. Dockerfiles can start simple and grow to support more
30
-
complex scenarios.
28
+
Dockerfiles are crucial inputs for image builds and can facilitate automated,
29
+
multi-layer image builds based on your unique configurations. Dockerfiles can
30
+
start simple and grow with your needs to support more complex scenarios.
31
31
32
32
### Filename
33
33
@@ -44,9 +44,9 @@ Dockerfile filename using the `--file` flag with the `docker build` command. See
44
44
45
45
## Docker images
46
46
47
-
Docker images consist of layers. Each layer results from a build instruction in the
48
-
Dockerfile. Layers are stacked in order, and each one represents changes applied to
49
-
the previous layer.
47
+
Docker images consist of layers. Each layer is the result of a build
48
+
instruction in the Dockerfile. Layers are stacked sequentially, and each one is
49
+
a delta representing the changes applied to the previous layer.
50
50
51
51
### Example
52
52
@@ -149,13 +149,10 @@ the container.
149
149
150
150
### Comments
151
151
152
-
The `# install app dependencies` line is a comment. Comments in Dockerfiles start
153
-
with `#`. Comments help document your Dockerfile for future readers and editors.
154
-
155
-
> [!NOTE]
156
-
> Comments use the same symbol as the [syntax directive](#dockerfile-syntax) on the
157
-
> first line. The symbol is only a directive if it matches a directive pattern and is
158
-
> at the start of the Dockerfile. Otherwise, it is a comment.
152
+
Note the `# install app dependencies` line. This is a comment. Comments in
153
+
Dockerfiles begin with the `#` symbol. As your Dockerfile evolves, comments can
154
+
be instrumental to document how your Dockerfile works for any future readers
155
+
and editors of the file, including your future self!
0 commit comments