Skip to content

Commit 71afb15

Browse files
committed
Fix: uvicorn not in path
1 parent 7fb8cfa commit 71afb15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM python:3.11-slim
22

3+
COPY app/requirements.txt /tmp/requirements.txt
4+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
5+
36
RUN useradd -m -U -d /app notifications
47
USER notifications
58
WORKDIR /app
69

7-
COPY app/requirements.txt /app/requirements.txt
8-
RUN pip install --no-cache-dir -r /app/requirements.txt
9-
1010
COPY app /app
1111

1212
CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]

0 commit comments

Comments
 (0)