From 6877ab8f6c4a6dda840dfda98b34ac1bed6dc019 Mon Sep 17 00:00:00 2001 From: hdoupe Date: Thu, 24 Sep 2020 16:44:55 -0400 Subject: [PATCH] Set PYTHONUNBUFFERED to 1 so that Python doesn't buffer logs --- workers/cs_workers/dockerfiles/Dockerfile.model | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workers/cs_workers/dockerfiles/Dockerfile.model b/workers/cs_workers/dockerfiles/Dockerfile.model index 3237acdb..f180746e 100644 --- a/workers/cs_workers/dockerfiles/Dockerfile.model +++ b/workers/cs_workers/dockerfiles/Dockerfile.model @@ -4,6 +4,8 @@ FROM continuumio/miniconda3 USER root RUN apt-get update && apt install libgl1-mesa-glx --yes +ENV PYTHONUNBUFFERED 1 + RUN conda config --append channels conda-forge RUN conda update conda RUN conda install "python>=3.7" pip tornado dask lz4 && pip install boto3 gunicorn @@ -37,4 +39,4 @@ WORKDIR /home EXPOSE 8010 ENV PORT=8010 -ENV HOST=0.0.0.0 \ No newline at end of file +ENV HOST=0.0.0.0