From bb0a285015ab0c7d2826d269c86545ba9ad9ad3f Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 20 Nov 2020 15:03:28 -0500 Subject: [PATCH] Fixed python output in docker. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index fe5ac3f..038c86d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,7 @@ RUN pip install -r /tmp/requirements.txt ### WORKDIR /python COPY . . + +ENV PYTHONUNBUFFERED=1 +ENV PYTHONIOENCODING=UTF-8 CMD ["python", "/python/openstack_exporter.py"] \ No newline at end of file