Skip to content

Commit 0f8613e

Browse files
author
Piotr Gulbinowicz
committed
update api dockerfiles to run with log_conf.yaml
1 parent 50ae739 commit 0f8613e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM python:3.12.6-slim-bookworm
22
WORKDIR /src
3+
COPY log_conf.yaml ./
34
COPY requirements.txt .
45
RUN pip install -r requirements.txt --no-cache-dir
56
COPY *.py ./
67
USER 1000:1000
7-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "6789"]
8+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "6789", "--log-config=log_conf.yaml"]

api/Dockerfile-hot-reload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ RUN apt-get update && apt-get install netcat-traditional -y && rm -rf /var/lib/a
44
COPY requirements.txt .
55
RUN pip install -r requirements.txt --no-cache-dir
66
USER 1000:1000
7-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "6789", "--reload"]
7+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "6789", "--reload", "--log-config=log_conf.yaml"]

0 commit comments

Comments
 (0)