From 4be7251c8a025871154712254252269a6d528c5c Mon Sep 17 00:00:00 2001 From: Adam <41971533+jcadam14@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:05:59 -0400 Subject: [PATCH] Updated CMD call to uvicorn --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02ec76d..ca88c1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 +ENV UVICORN_LOG_LEVEL=info + WORKDIR /usr/app RUN pip install poetry @@ -18,4 +20,4 @@ EXPOSE 8888 USER sbl -CMD ["uvicorn", "regtech_user_fi_management.main:app", "--host", "0.0.0.0", "--port", "8888", "--log-config", "log-config.yml"] +CMD uvicorn regtech_user_fi_management.main:app --host 0.0.0.0 --port 8888 --log-config log-config.yml --log-level $UVICORN_LOG_LEVEL --timeout-keep-alive 65