Skip to content

Commit b6ec4c1

Browse files
committed
feedback
1 parent 00ac5d0 commit b6ec4c1

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

content/manuals/build/concepts/dockerfile.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Here are the most common types of instructions:
2525
| [`COPY <src> <dest>`](/reference/dockerfile.md#copy) | Copies new files or directories from `<src>` and adds them to the container at the path `<dest>`. |
2626
| [`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. |
2727

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.
3131

3232
### Filename
3333

@@ -44,9 +44,9 @@ Dockerfile filename using the `--file` flag with the `docker build` command. See
4444
4545
## Docker images
4646

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.
5050

5151
### Example
5252

@@ -149,13 +149,10 @@ the container.
149149

150150
### Comments
151151

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!
159156

160157
### Installing dependencies
161158

0 commit comments

Comments
 (0)