FROM python:3.11-slim WORKDIR /app # No extra dependencies needed beyond standard library for the current script # But we might need them if we decide to use libraries later. RUN useradd -m -u 1000 homelab COPY src/stability_agent.py . COPY healthcheck.sh . RUN chmod +x healthcheck.sh # Create the expected directories RUN mkdir -p /opt/homelab/state /opt/homelab/events USER homelab CMD ["python", "stability_agent.py"]