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
codebling
changed the title
COPY --exclude fails when source is not a directory
COPY --exclude does not exclude any fiels when source is not a directory
Nov 6, 2024
codebling
changed the title
COPY --exclude does not exclude any fiels when source is not a directory
COPY --exclude does not exclude any files when source is not a directory
Nov 6, 2024
The reason why this seems to affect --exclude is because exclude is forcing the checksum to compute which paths it's allowed to follow and the broken symlink just happens to be included.
it looks like this issue is not related to that one, but I'm no expert here.
To reproduce, create two empty files,
a
andb
, and a Dockerfile with the following contents:The files
a
andb
appear in the image.This is contrary to the documentation, which states
If the source is a directory, as in the slightly modified version of the Dockerfile above,
a
is not copied.The text was updated successfully, but these errors were encountered: