Dockerfile syntax : Yaml to dockerfile

Hi , i started to use docker DHI as part of my day to day docker image builds , and i saw that the new docker DHI has yaml formated dockerfile i thins its the syntax layer (# syntax=dhi.io/build:2-debian13)

I was wondering if i can get that syntax or if its going to be publicly available any time soon ?

For the devops guys out there , managing and templating yaml is so much easier

It should already be available. The string after the syntax keyword is a tag of a Docker image. The same method is used and documented for other features

If you go to the hardened images browser and search for “build”, you should find the image, but you need to log in to dhi.io as you would to pull other hardened images.

So maybe i didn’t understand something ,
I saw in the github the “dockerfile” definition

Example of what i mean
Example of the dockerfile in dhi

And I replied exactly to that. # syntax=imagename defines what buildkit can do, how it can interpret the Dockerfile. Have you tried to build a dockerfile like that?

I haven’t tried and i was unsure how to use and such.
Thats the reason i created the post

The docs also talks about the “real” dockerfile commands .