1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Document arg before from

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2017-05-12 18:45:08 -04:00
parent eb8abc9598
commit 83a4afe264

View file

@ -530,6 +530,17 @@ FROM extras:${CODE_VERSION}
CMD /code/run-extras
```
To use the default value of an `ARG` declared before the first `FROM` use an
`ARG` instruction without a value:
```Dockerfile
ARG SETTINGS=default
FROM busybox
ARG SETTINGS
```
## RUN
RUN has 2 forms: