mirror of https://github.com/docker/docker-py.git
Merge a6b9ca1c62
into db7f8b8bb6
This commit is contained in:
commit
fc806296d4
|
@ -97,6 +97,11 @@ def create_archive(root, files=None, fileobj=None, gzip=False,
|
||||||
# and directories executable by default.
|
# and directories executable by default.
|
||||||
i.mode = i.mode & 0o755 | 0o111
|
i.mode = i.mode & 0o755 | 0o111
|
||||||
|
|
||||||
|
# reset uid and gid to 0 to avoid build cache invalidations due to
|
||||||
|
# changed ownership. (docker-cli does the same)
|
||||||
|
i.uid = 0
|
||||||
|
i.gid = 0
|
||||||
|
|
||||||
if i.isfile():
|
if i.isfile():
|
||||||
try:
|
try:
|
||||||
with open(full_path, 'rb') as f:
|
with open(full_path, 'rb') as f:
|
||||||
|
|
Loading…
Reference in New Issue