Fix: FROM is no more the first instruction in the Dockerfile.

ARG can be placed even before!
This commit is contained in:
Julien Girardin
2019-12-09 14:49:39 +01:00
parent bb55463aee
commit dcd0c3e189

View File

@@ -27,7 +27,9 @@ In this section, we will see more Dockerfile commands.
* When there are no changes in the instructions and files making a layer,
the builder re-uses the cached layer, without executing the instruction for that layer.
* The `FROM` instruction MUST be the first non-comment instruction.
* The `FROM` instruction ~~MUST~~ be the first non-comment instruction.
(Addendum: `ARG` can now be placed before a `FROM`)
* Lines starting with `#` are treated as comments.