Description
Description
Cut from #850 by @pixdrift - I think this should be a stand alone discussion/enhancement request.
I also wanted to raise in this thread the possibility of inclusion of an INCLUDE feature in the Dockerfile parser (bud), to essentially achieve the same as above. This has been raised / rejected several times in Docker/moby issues, but interested to know if there is any precedent in Buildah for support of additional features in the Dockerfile, or if bud is purely for compatibility with existing features.
Proposal discussions for INCLUDE in Docker/Moby:
moby/moby#735
moby/moby#12749
I don't really see this as including a entire existing Dockerfiles (ie. with their own FROM), more to include common code blocks/snippets. I have achieved the same using native buildah run
and source
to pull in common code blocks, but would still be interested in comments on the above idea.