Files
mtusi2026lab7/Dockerfile
T
2026-11-20 20:37:41 +03:00

10 lines
426 B
Docker

FROM python:3.12.10-slim
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
WORKDIR /srv
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home messenger
COPY app app
USER messenger
ENTRYPOINT ["python", "-m", "app.credentials"]
CMD ["uvicorn", "app.api:app", "--host", "127.0.0.1", "--port", "8080", "--no-access-log", "--no-proxy-headers", "--limit-concurrency", "48"]