FROM python:3.11-slim

WORKDIR /app

RUN apt-get update && \
    apt-get install -y --no-install-recommends curl && \
    rm -rf /var/lib/apt/lists/*

COPY pyproject.toml requirements.txt ./
COPY minimateplus ./minimateplus
COPY micromate    ./micromate
COPY sfm          ./sfm
COPY bridges      ./bridges
COPY scripts      ./scripts

RUN pip install --no-cache-dir -e .

EXPOSE 8200

CMD ["python", "-m", "uvicorn", "sfm.server:app", "--host", "0.0.0.0", "--port", "8200"]