# AutoJanet Dispatcher Container
#
# Lightweight image for the dispatcher CronJob.
# No opencode — just Python + k8s client.

FROM python:3.12-slim

WORKDIR /app

COPY dispatcher/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

COPY dispatcher/dispatcher.py /app/dispatcher.py

RUN useradd -m -u 1000 agent
USER agent

ENTRYPOINT ["python3", "/app/dispatcher.py"]
