Using --spider for healthcheck, which performs a HEAD request instead of a GET request

This commit is contained in:
zodac
2024-12-02 20:44:12 +13:00
parent 0e05c77fa7
commit 103daf000d

View File

@@ -39,7 +39,7 @@ HEALTHCHECK --interval=30s \
--timeout=5s \
--start-period=10s \
--retries=3 \
CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "-O", "-", "http://127.0.0.1:8080/openapi" ]
CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8080/openapi" ]
# collect information from git repositories
RUN /opt/recipes/venv/bin/python version.py