asbjornenge / Docker.tmbundle

Dockerfile syntax
MIT License
75 stars 27 forks source link

Add support for multistage dockerfiles #15

Closed wyaeld closed 4 years ago

wyaeld commented 7 years ago

2 small syntax changes in 2017.05 and onwards

https://docs.docker.com/engine/userguide/eng-image/multistage-build/

AS is now a keyword FROM can occur multiple times in the body

I looked at the code, but not familiar enough with the structure to see how to do this.

andyneff commented 7 years ago

Also, FROM no longer has to be the first Dockerfile command in the file.

asbjornenge commented 7 years ago

Thanks for submitting these 👍 I am a bit swamped atm. with deadlines on other projects. Would appreciate a PR if anyone kan find the time 💖 If not I'll get on it in a few weeks.