summaryrefslogtreecommitdiff
path: root/docker/utils/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/utils/utils.py')
-rw-r--r--docker/utils/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index b13248b..174faf6 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -36,6 +36,7 @@ def mkbuildcontext(dockerfile):
'Dockerfiles with Python 3')
else:
dfinfo.size = len(dockerfile.getvalue())
+ dockerfile.seek(0)
elif isinstance(dockerfile, io.BytesIO):
dfinfo = tarfile.TarInfo('Dockerfile')
dfinfo.size = len(dockerfile.getvalue())