Skip to content

build: apply global .dockerignore during context sync - #4114

Draft
crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:global-dockerignore
Draft

crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:global-dockerignore

Conversation

@crazy-max

Copy link
Copy Markdown
Member

Buildx now reads a global .dockerignore from its config directory and applies it to local build contexts and local named contexts. The global rules run before repository rules, so a repository ! pattern can restore a globally excluded path. This extends the additive-only behavior originally proposed in #3776. The change uses the per-request file sync hook from moby/buildkit#7202. Remote contexts and Dockerfile mounts are unaffected.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

proposal: add client-side global dockerignore for local build contexts

1 participant