From 2c74e722aea612aa86f3bece0c64aeff45681a00 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Fri, 31 Jul 2020 22:16:38 +0300 Subject: [PATCH] Disable Python buffering --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 56e8c9b..10ba0fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,5 +10,9 @@ RUN pip3 uninstall -y buildozer # See https://github.com/sudo-project/sudo/issues/42 RUN echo "Set disable_coredump false" | sudo tee -a /etc/sudo.conf > /dev/null +# By default Python buffers output and you see prints after execution +# Set env variable to disable this behavior +ENV PYTHONUNBUFFERED=1 + COPY entrypoint.py /action/entrypoint.py ENTRYPOINT ["/action/entrypoint.py"]