From 0141c6184668904ff4553766589c292eb3aeb010 Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Sat, 13 Oct 2018 01:44:01 -0400 Subject: [PATCH] Run python in unbuffered print mode so that docker picks up the output while the program is running --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 80d739e..5c5b7e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:3.6.6-stretch +ENV PYTHONUNBUFFERED=0 + WORKDIR /app COPY . /app @@ -10,4 +12,4 @@ RUN pip install --no-cache-dir pipenv \ VOLUME "/data" -CMD [ "python", "-m", "pipenv", "run", "./webhook-bridge.py" ] \ No newline at end of file +CMD [ "python", "-m", "pipenv", "run", "./webhook-bridge.py" ]