From 5e9da3e991b6c5b49be74847b81a8dc3d16604af Mon Sep 17 00:00:00 2001 From: marcsello Date: Thu, 5 Aug 2021 16:20:14 +0200 Subject: [PATCH] Added loglevel envvar --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a35a4e..505173a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ WORKDIR /model_service/ RUN pip3 install -r requirements.txt && pip3 install gunicorn -EXPOSE 8000 -CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"] +ENV GUNICORN_LOGLEVEL="info" + +EXPOSE 8000 +CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]