mirror of
https://github.com/hassio-addons/docker-context-streamer.git
synced 2025-05-07 04:11:24 +00:00
Closing tar stream & flushing output buffers
This commit is contained in:
parent
1ac314c84a
commit
35be826832
1 changed files with 3 additions and 0 deletions
|
@ -79,3 +79,6 @@ class Streamer(object):
|
|||
tarinfo = TarInfo('./Dockerfile')
|
||||
tarinfo.size = len(self.dockerfile)
|
||||
tarfile.addfile(tarinfo, BytesIO(self.dockerfile.encode('UTF-8')))
|
||||
|
||||
tarfile.close()
|
||||
sys.stdout.flush()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue