FROM python:3.12-slim

WORKDIR /app

COPY pyproject.toml README.md ./
COPY src/ src/
COPY data/ data/
COPY scripts/ scripts/
COPY tests/ tests/
COPY notebooks/ notebooks/
COPY app.py .

RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu \
    && pip install --no-cache-dir -e ".[dev]" \
       tiktoken \
       scikit-learn \
       pandas \
       matplotlib \
       seaborn \
       telethon \
       gradio

CMD ["pytest", "tests/", "-v"]
