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"]