From e10efd07aaa632c78c226afd14f58f7894cb0412 Mon Sep 17 00:00:00 2001 From: Colin Nelson Date: Tue, 25 Sep 2018 15:02:42 -0700 Subject: [PATCH] emailservice: Added PYTHONUNBUFFERED=1 to environment and removed '-u' argument --- src/emailservice/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/emailservice/Dockerfile b/src/emailservice/Dockerfile index bb2721f..5a1bb22 100644 --- a/src/emailservice/Dockerfile +++ b/src/emailservice/Dockerfile @@ -22,6 +22,9 @@ RUN pip install -r requirements.txt FROM base as final +# Enable unbuffered logging +ENV PYTHONUNBUFFERED=1 + # Download the grpc health probe RUN GRPC_HEALTH_PROBE_VERSION=v0.1.0-alpha.1 && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ @@ -39,4 +42,4 @@ RUN apk add --no-cache libstdc++ COPY . . EXPOSE 8080 -ENTRYPOINT [ "python", "-u", "email_server.py" ] \ No newline at end of file +ENTRYPOINT [ "python", "email_server.py" ] \ No newline at end of file