diff --git a/Dockerfile b/Dockerfile index 959814b..0e4e7f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ RUN apt-get -q update && \ # Setup locale. This prevents Python 3 IO encoding issues. ENV LANG C.UTF-8 +# Make stdout/stderr unbuffered. This prevents delay between output and cloud +# logging collection. +ENV PYTHONUNBUFFERED 1 # Upgrade pip (debian package version tends to run a few version behind) and # install virtualenv system-wide.