Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix(docker): fixes the health check wget (#104)

Matt Kilgoreab3479173735
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