FROM python:3.12-slim

WORKDIR /app

RUN pip install --no-cache-dir fastapi uvicorn fastf1 python-slugify

COPY cdn-api.py circuits_service.py ergast_service.py ./
COPY models/ ./models/
COPY circuits/ ./circuits/

EXPOSE 8000

CMD ["uvicorn", "cdn-api:app", "--host", "0.0.0.0", "--port", "8000"]
