moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
8.06k stars 1.13k forks source link

dockerfile: formal syntax specification #1587

Open dseynaev opened 4 years ago

dseynaev commented 4 years ago

Any chance on having a more formal specification of the dockerfile frontend at some point?

I came here after reading https://github.com/moby/moby/issues/12221 My usecase is that I'm writing a generator for dockerfiles so having something that's machine parse-able would be great. Doesn't necessarily have to be a BNF: a common pattern I've seen for Go is to have a giant file with structs.

If this is the wrong place to ask, a pointer would be appreciated :) If I understood correctly, this is the current upstream for dockerfile syntax?

TBBle commented 4 years ago

Until #163 is done, this is probably the best place for it.