FROM python:3.13-slim

WORKDIR /app

COPY pyproject.toml ./
COPY src ./src
COPY examples ./examples
COPY harness ./harness
COPY review ./review
COPY bench ./bench
COPY docs ./docs

RUN pip install --no-cache-dir -e ".[api,openai]" && \
    pip install --no-cache-dir uvicorn opentelemetry-api opentelemetry-sdk \
        opentelemetry-exporter-otlp-proto-grpc

RUN mkdir -p /var/lib/hypermind

EXPOSE 8080

CMD ["python", "-m", "examples.serve_api", "--host", "0.0.0.0", "--port", "8080"]
