AFAIK, COPY instruction already has support some basic level of regexp to exclude files or folders, but, with this option, we'd enhance this functionality. To be more precise, I'd recommended adding an additional --exclude option to docker/dockerfile frontend to let people specify which files or folders to be excluded while copying them:
COPY --exclude=*.sh,type=file # will exclude files ends with .sh
COPY --exclude=manifests,type=folder # will exclude manifests folder
AFAIK, COPY instruction already has support some basic level of regexp to exclude files or folders, but, with this option, we'd enhance this functionality. To be more precise, I'd recommended adding an additional --exclude option to docker/dockerfile frontend to let people specify which files or folders to be excluded while copying them:
would it make sense? @crazy-max @dentrax