FROM python:3.12-slim WORKDIR /app COPY pyproject.toml README.md ./ COPY app ./app RUN pip install --no-cache-dir -U pip && pip install --no-cache-dir .[test] EXPOSE 8080 CMD ["sh", "-c", "uvicorn app.main:app --host ${HOST:-0.0.0.0} --port ${PORT:-8080}"]