Skip to content

dockerfile: fix CopyIgnoredFile for context root - #6930

Merged
tonistiigi merged 1 commit into
moby:masterfrom
tonistiigi:dockerignore-root-fix
Jul 6, 2026
Merged

dockerfile: fix CopyIgnoredFile for context root#6930
tonistiigi merged 1 commit into
moby:masterfrom
tonistiigi:dockerignore-root-fix

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

Avoid treating COPY . . as copying an ignored file named "." when .dockerignore excludes dotfiles with patterns such as .*.

Keep the warning for catch-all root patterns like *, where copying the context root would copy only ignored entries.

fix #6926

Avoid treating COPY . . as copying an ignored file named "." when
.dockerignore excludes dotfiles with patterns such as .*.

Keep the warning for catch-all root patterns like *, where copying the
context root would copy only ignored entries.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi
tonistiigi merged commit 59eeaf8 into moby:master Jul 6, 2026
193 checks passed
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.

CopyIgnoredFile linter triggers with .* pattern and COPY . .

2 participants