FROM python:3.14-slim RUN groupadd --gid 1500 uvicorn && useradd uvicorn --gid 1500 --uid 1500 RUN apt update && apt install -y --no-install-recommends \ build-essential \ curl \ python3-dev && \ apt clean && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY pyproject.toml README.md /app/ RUN mkdir {{project_slug}} && touch {{project_slug}}/__init__.py && pip install . COPY {{project_slug}} /app/{{project_slug}} RUN pip install . USER uvicorn CMD ["uvicorn", "{{project_slug}}.fastapi_init:app", "--host", "0.0.0.0", "--port", "8080"]