FROM python:3.12-slim

# paho-mqtt only. Apprise is reached over plain HTTP with urllib, and the Docker
# socket is read through the stdlib http.client, so there is no other dependency.
RUN pip install --no-cache-dir "paho-mqtt==2.1.0"

WORKDIR /app
COPY watchdog.py /app/watchdog.py

# The service only reads state; the compose file provides the state volume and
# the (read-only) Docker socket.
VOLUME ["/var/lib/voice_intake_watchdog"]

CMD ["python", "-u", "/app/watchdog.py"]
