You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exclude option correctly excludes files from the top-level directory in a COPY command, but incorrectly copies files matching the exclude pattern in subdirectories.
See also #5489
Example repo
The exclude option correctly excludes files from the top-level directory in a
COPY
command, but incorrectly copies files matching the exclude pattern in subdirectories.To reproduce, create a directory structure:
and add these contents to the Dockerfile:
The resulting file structure in the image will be:
a.1
is correctly excluded at the top level, buta.1
in the subdirectory is incorrectly copiedThe text was updated successfully, but these errors were encountered: