Skip to content

Commit 5379646

Browse files
Update ARG, ENV and LABEL reference definitions to clarify that first KV-pairs are required but additional ones are optional
Signed-off-by: Shaun Thompson <[email protected]>
1 parent ede3ed3 commit 5379646

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ both the `CMD` and `ENTRYPOINT` instructions should be specified in the
10171017
## LABEL
10181018

10191019
```dockerfile
1020-
LABEL <key>=<value> <key>=<value> <key>=<value> ...
1020+
LABEL <key>=<value> [<key>=<value>...]
10211021
```
10221022

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

11461146
```dockerfile
1147-
ENV <key>=<value> ...
1147+
ENV <key>=<value> [<key>=<value>...]
11481148
```
11491149

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

23122312
```dockerfile
2313-
ARG <name>[=<default value>] ...
2313+
ARG <name>[=<default value>] [<name>[=<default value>]...]
23142314
```
23152315

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

0 commit comments

Comments
 (0)