homelab-codex-ws/services/stability-agent/Dockerfile

19 lines
428 B
Docker
Raw Normal View History

2026-05-15 18:51:45 +02:00
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
2026-05-15 18:51:45 +02:00
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
2026-05-15 18:51:45 +02:00
CMD ["python", "stability_agent.py"]