On Dockerfiles, allow filepaths to be excluded from ADD and COPY commands #4440
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref #4439
This PR introduces new options in the Dockerfile frontend, namely
--exclude
onCOPY
andADD
commands.It essentially exposes the existing
ExcludePatterns
from the LLB to the frontend.More information in the related issue #4439.
I did manage to only run the integration tests in the
frontend
directory, which were the only parts changed, via, as all the other tests fail running to me, even when I am onmaster
.I am open to suggestions on how to better test those changes, as I am not yet familiar with the codebase.