From eb23df99ea5bcfc8d455e9a895038f103c266e38 Mon Sep 17 00:00:00 2001 From: Riley Hun Date: Wed, 14 Apr 2021 11:19:22 -0700 Subject: [PATCH] add gunicorn to request logger --- components/seldon-request-logger/Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/components/seldon-request-logger/Dockerfile b/components/seldon-request-logger/Dockerfile index cb7a3b821e..4d44be8ddb 100644 --- a/components/seldon-request-logger/Dockerfile +++ b/components/seldon-request-logger/Dockerfile @@ -23,8 +23,14 @@ RUN yum remove -y nodejs httpd USER default +ENV APP_ENV=production \ + PATH="/home/appuser/.local/bin:${PATH}" \ + PORT=8080 + COPY app app +WORKDIR app + +EXPOSE $PORT + +CMD gunicorn --bind 0.0.0.0:$PORT --workers 3 --threads 8 default_logger:app -EXPOSE 8080 -ENTRYPOINT ["python"] -CMD ["app/default_logger.py"]