FROM python:3.12-slim

LABEL maintainer="openkairos contributors"
LABEL description="Always-on AI daemon that watches your codebase"

WORKDIR /app

# Install git (needed for git context scanning)
RUN apt-get update && apt-get install -y --no-install-recommends git && \
    rm -rf /var/lib/apt/lists/*

# Install openkairos
COPY pyproject.toml README.md ./
COPY openkairos/ ./openkairos/
RUN pip install --no-cache-dir .

# Default: watch /project (mount your codebase here)
ENTRYPOINT ["kairos"]
CMD ["watch", "/project"]
