Added health check

This commit is contained in:
Benjamin Harder
2025-05-24 18:30:02 +02:00
parent 4a8acdf72b
commit 9c403fc7a0

View File

@@ -36,6 +36,9 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY main.py main.py
COPY src src
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD pgrep -f main.py || exit 1
CMD ["python", "main.py"]
# For debugging: