From dcd0c3e1897e7b5c66f0aa0d1fce22eebf3eaec3 Mon Sep 17 00:00:00 2001 From: Julien Girardin Date: Mon, 9 Dec 2019 14:49:39 +0100 Subject: [PATCH] Fix: FROM is no more the first instruction in the Dockerfile. ARG can be placed even before! --- slides/containers/Advanced_Dockerfiles.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slides/containers/Advanced_Dockerfiles.md b/slides/containers/Advanced_Dockerfiles.md index 58cb1713..16d43aca 100644 --- a/slides/containers/Advanced_Dockerfiles.md +++ b/slides/containers/Advanced_Dockerfiles.md @@ -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.