Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 1f66bbd

Browse files
author
Jon Wayne Parrott
committed
Merge pull request #22 from GoogleCloudPlatform/unbuffered
Adding PYTHONUNBUFFERED
2 parents 689e81e + e1c974e commit 1f66bbd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ RUN apt-get -q update && \
1717

1818
# Setup locale. This prevents Python 3 IO encoding issues.
1919
ENV LANG C.UTF-8
20+
# Make stdout/stderr unbuffered. This prevents delay between output and cloud
21+
# logging collection.
22+
ENV PYTHONUNBUFFERED 1
2023

2124
# Upgrade pip (debian package version tends to run a few version behind) and
2225
# install virtualenv system-wide.

0 commit comments

Comments
 (0)