Skip to content

style(docker): newer versions of docker require keyword as to be of same case as from

As reported by Sagar, newer versions of docker build engine require to have AS keyword in the same case as FROM.

I checked in dockerfile reference: The instruction is not case-sensitive. However, convention is for them to be UPPERCASE to distinguish them from arguments more easily.

But in the example for FROM:

FROM [--platform=<platform>] <image> [AS <name>]

They put an uppercase to AS.

Merge request reports

Loading