Open segevfiner opened 2 days ago
@segevfiner Could you clarify on the purpose of using docker/dockerfile:1
? How is docker/dockerfile:1
different from not specifying the syntax
directive at all? Does BUILDKIT_SYNTAX
take precedence or does the directive take precedence?
If you don't specify syntax, it uses some builtin frontend version, which I'm not sure what features it supports, as in, what version is it.
BUILDKIT_SYNTAX
is another way to use a different syntax and I'm not sure which takes precedence, I would assume the command line.
It's documented here as well: https://docs.docker.com/build/dockerfile/frontend/
The extension currently offers completion for
# syntax syntax=docker/dockerfile:experimental
, it would be nice if it would also offer# syntax=docker/dockerfile:1
as that is more recommended for general usage.See https://docs.docker.com/reference/dockerfile/#syntax