top | item 40352973

(no title)

johanbcn | 1 year ago

It's explained on the official documentation: https://docs.docker.com/reference/dockerfile/#scope

discuss

order

hombre_fatal|1 year ago

True, though gotchas exist when user intuition doesn't match with actual behavior regardless of whether they are mentioned in docs.

chii|1 year ago

Principle of least surprise.

If you need to write in the docs about a surprise that a user otherwise wouldn't have expected, may be it's a sign that the surprise should be fixed up such that it's not surprising behaviour.