We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b464f9 commit 0c948c7Copy full SHA for 0c948c7
docker/utils/build.py
@@ -95,6 +95,15 @@ def match(p):
95
# be included.
96
if all(not p[0] for p in sub) and not matched:
97
continue
98
+ # I think this would greatly speed up dockerignore handling by not
99
+ # recursing into directories we are sure would be entirely
100
+ # included, and only yielding the directory itself, which will be
101
+ # recursively archived anyway. However the current unit test expect
102
+ # the full list of subfiles and I'm not 100% sure it would make no
103
+ # difference yet.
104
+ # if all(p[0] for p in sub) and matched:
105
+ # yield f
106
+ # continue
107
children = False
108
for r in (os.path.join(f, p) for p in walk(cur, sub, matched)):
109
yield r
0 commit comments