Skip to content

Commit

Permalink
Update ARG, ENV and LABEL reference definitions to clarify that first…
Browse files Browse the repository at this point in the history
… KV-pairs are required but additional ones are optional

Signed-off-by: Shaun Thompson <[email protected]>
  • Loading branch information
thompson-shaun committed Oct 18, 2024
1 parent ede3ed3 commit 5379646
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ both the `CMD` and `ENTRYPOINT` instructions should be specified in the
## LABEL

```dockerfile
LABEL <key>=<value> <key>=<value> <key>=<value> ...
LABEL <key>=<value> [<key>=<value>...]
```

The `LABEL` instruction adds metadata to an image. A `LABEL` is a
Expand Down Expand Up @@ -1144,7 +1144,7 @@ port. For detailed information, see the
## ENV

```dockerfile
ENV <key>=<value> ...
ENV <key>=<value> [<key>=<value>...]
```

The `ENV` instruction sets the environment variable `<key>` to the value
Expand Down Expand Up @@ -2310,7 +2310,7 @@ Therefore, to avoid unintended operations in unknown directories, it's best prac
## ARG

```dockerfile
ARG <name>[=<default value>] ...
ARG <name>[=<default value>] [<name>[=<default value>]...]
```

The `ARG` instruction defines a variable that users can pass at build-time to
Expand Down

0 comments on commit 5379646

Please sign in to comment.