From ba361bec937842d3f7de1d104b69fece7e85b2b9 Mon Sep 17 00:00:00 2001 From: Youe Graillot Date: Tue, 16 Nov 2021 15:16:45 +0100 Subject: [PATCH] turns off buffering for easier container logging --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f7d64246..1c714c12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ FROM python:3.10-alpine -ENV PORT="8000" - -# Keeps Python from generating .pyc files in the container -ENV PYTHONDONTWRITEBYTECODE=1 +ENV PORT="8000" \ + # Keeps Python from generating .pyc files in the container + PYTHONDONTWRITEBYTECODE=1 \ + # Turns off buffering for easier container logging + PYTHONUNBUFFERED=1 # ihatemoney configuration ENV DEBUG="False" \