# OPTIONAL - for local/CI parity only. Production deploys via git pull + restart
# uvicorn, NOT this image. Nothing in the repo or deploy depends on Docker.
FROM python:3.11-slim

WORKDIR /app

# Runtime deps only (same source of truth as prod: requirements.txt).
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# web/out is committed, so no Node build step is needed here.
COPY . .

EXPOSE 8081
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8081"]
