Fix to health check

This commit is contained in:
Benjamin Harder
2025-05-24 18:41:29 +02:00
parent 9c403fc7a0
commit 22bdc9ab43

View File

@@ -36,9 +36,13 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY main.py main.py
COPY src src
# Install health check
RUN apt-get update && apt-get install -y --no-install-recommends procps && \
apt-get clean && rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD pgrep -f main.py || exit 1
CMD ["python", "main.py"]
# For debugging: