From 309cca2712c03d2dcac9bd660c1c47377c41a4c3 Mon Sep 17 00:00:00 2001 From: adamghill Date: Fri, 29 Nov 2024 11:06:10 -0500 Subject: [PATCH] Update healthcheck. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b27eab5..c6b6633 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,12 +45,12 @@ EXPOSE 80 # Install curl, collect static assets, compress static assets RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt-get update --fix-missing && \ - apt-get install --no-install-recommends -y wget curl && \ + apt-get install --no-install-recommends -y curl && \ python app.py collectstatic -v 2 --noinput && \ python app.py compress -HEALTHCHECK --interval=1m --timeout=10s --start-period=30s --retries=3 \ - CMD curl -f http://0.0.0.0:80 || exit 1 +HEALTHCHECK --interval=1m --timeout=10s --start-period=5s --retries=3 \ + CMD curl -f http://0.0.0.0:80/static/svg/github.svg || exit 1 # Run gunicorn CMD ["gunicorn", "app:wsgi", "--config=gunicorn.conf.py"]