FROM archlinux:latest

RUN pacman -Syu --noconfirm && \
    pacman -S --noconfirm python python-pip base-devel git && \
    pacman -Scc --noconfirm

COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv

RUN uv venv /opt/venv

ENV PATH="/opt/venv/bin:$PATH"

ARG CACHE_BUST=3
RUN uv pip install --python /opt/venv/bin/python "outo-agentcore>=0.3.0" httpx

COPY watcher/process.py /opt/outo-10team/watcher.py

RUN mkdir -p /root/.outo-10team /root/.outoac/agents /root/.outoac/skills

CMD ["python", "/opt/outo-10team/watcher.py"]
