PyInstaller unbuffered stdio
问题 Problem Docker image sizes should commonly be as small as possible. Using full-blown environments like a standard python image results often, with all dependencies installed, in heavily bloated images. Packaging python into stand-alone executables (e.g. using pyinstaller) is a perfect way of reducing image sizes and overall complexity. Environment : python3.6 , pyinstaller==3.4 The problem arising is, that python uses per default buffered stdio. This can be mitigated by running python scripts