FROM python:3.12-slim

WORKDIR /app

# Reason: keep the image small — we only need pandas + fastapi + uvicorn.
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY app.py .
COPY static/ ./static/

ENV HOST=0.0.0.0 PORT=8000

EXPOSE 8000

CMD ["python", "app.py"]
