Added loglevel envvar
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Pünkösd Marcell 2021-08-05 16:20:14 +02:00
parent 4110287efb
commit 5e9da3e991
1 changed files with 4 additions and 2 deletions

View File

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