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 #272main
parent
1030118d0b
commit
cb80c181a6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue