From ac32141b34f19e15ce8c1187d3620bcba68be04a Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Fri, 30 May 2025 11:16:12 -0700 Subject: [PATCH] Update Cron Simplify Cron Process to reduce the possibility of it to hang when running --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 54bf1e9..26030ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY haproxy_manager.py /haproxy/ COPY scripts /haproxy/scripts RUN chmod +x /haproxy/scripts/* RUN pip install -r requirements.txt -RUN echo "0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --no-random-sleep-on-renew" > /var/spool/cron/crontabs/root +RUN echo "0 */12 * * * root test -x /usr/bin/certbot && /usr/bin/certbot -q renew" > /var/spool/cron/crontabs/root EXPOSE 80 443 8000 # Add health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \