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
main
Ben Busby 2021-04-09 23:56:14 -04:00
parent 1030118d0b
commit cb80c181a6
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
1 changed files with 1 additions and 1 deletions

View File

@ -68,6 +68,6 @@ COPY whoogle.env .
EXPOSE $EXPOSE_PORT EXPOSE $EXPOSE_PORT
HEALTHCHECK --interval=30s --timeout=5s \ 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 CMD misc/tor/start-tor.sh & ./run