Skip to content

Commit

Permalink
Fix: uvicorn not in path
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Jan 21, 2024
1 parent 7fb8cfa commit 71afb15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.11-slim

COPY app/requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

RUN useradd -m -U -d /app notifications
USER notifications
WORKDIR /app

COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

COPY app /app

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

0 comments on commit 71afb15

Please sign in to comment.