17 lines
399 B
Docker
17 lines
399 B
Docker
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.
|
|
|
|
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
|
|
|
|
# Run the agent
|
|
CMD ["python", "stability_agent.py"]
|