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"]