Official Python getting-started example from the Docker documentation.
Source: Docker
FROM python:3.13WORKDIR /usr/local/appCOPY requirements.txt ./RUN pip install --no-cache-dir -r requirements.txtCOPY src ./srcEXPOSE 8080RUN useradd appUSER appCMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]FROM python:3.13FROM python:3.13RUN pip install --no-cache-dir -r requirements.txtRUN pip install --no-cache-dir -r requirements.txtNo HEALTHCHECK defined