From cb80c181a6129459a6aeae61e882580c0f7ac084 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 9 Apr 2021 23:56:14 -0400 Subject: [PATCH] Direct wget output in Docker healthcheck to stdout wget's default behavior to download contents to a file is not always a valid method to use as a Docker healthcheck, due to permission issues. This circumvents any issues there by redirecting the healthcheck output to stdout, which shouldn't cause any issues regardless of context. Fixes #272 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 50bbf87..df50793 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,6 +68,6 @@ COPY whoogle.env . EXPOSE $EXPOSE_PORT HEALTHCHECK --interval=30s --timeout=5s \ - CMD wget --no-verbose --tries=1 http://localhost:${EXPOSE_PORT}/ || exit 1 + CMD wget -qO- --no-verbose --tries=1 http://localhost:${EXPOSE_PORT}/ || exit 1 CMD misc/tor/start-tor.sh & ./run