Skip to content

Commit

Permalink
Merge pull request #3121 from rileyhun/rihun
Browse files Browse the repository at this point in the history
add gunicorn to request logger
  • Loading branch information
seldondev authored Jun 7, 2021
2 parents 7b4b57c + eb23df9 commit b87004d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions components/seldon-request-logger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit b87004d

Please sign in to comment.