FROM python:3.12-slim

# Install build dependencies for hnswlib
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install gundog from local source
COPY pyproject.toml uv.lock README.md ./
COPY src/ ./src/
COPY tests/ ./tests/

# Install uv and the package with dev dependencies
RUN pip install uv && uv pip install --system -e ".[onnx,dev]"

CMD ["pytest", "tests/integration/tests/test_ssl_mitm.py", "-v", "--tb=short"]
