From ab3479173735a6946580baee817948513c5f307c Mon Sep 17 00:00:00 2001 From: Matt Kilgore Date: Mon, 8 Jul 2024 11:48:46 -0400 Subject: [PATCH] fix(docker): fixes the health check wget (#104) --- Dockerfile | 2 +- Dockerfile.rootless | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c16cc3f4..a32d56a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ HEALTHCHECK --interval=30s \ --timeout=5s \ --start-period=5s \ --retries=3 \ - CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7745/api/v1/status" ] + CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "-O -", "http://localhost:7745/api/v1/status" ] VOLUME [ "/data" ] ENTRYPOINT [ "/app/api" ] diff --git a/Dockerfile.rootless b/Dockerfile.rootless index 51af4d64..aa7e6186 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -54,7 +54,7 @@ HEALTHCHECK --interval=30s \ --timeout=5s \ --start-period=5s \ --retries=3 \ - CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7745/api/v1/status" ] + CMD [ "/usr/bin/wget", "--no-verbose", "--tries=1", "-O -", "http://localhost:7745/api/v1/status" ] VOLUME [ "/data" ] # Drop root and run as low-privileged user