diff --git a/Dockerfile b/Dockerfile index ec6d35e..488d9f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]