aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-01-20 16:11:35 +0800
committerGitHub <noreply@github.com>2022-01-20 16:11:35 +0800
commitdfe8fbde8449bc709e5d0bf6657fd356ebbf1fd9 (patch)
tree1fa4f6f8ae1e94318458cee9cd8527848bcd777e
parent3a5ccc18cff06e51da185e130ede5b5b722d1589 (diff)
docker: remove healthcheck against the SSH port (#6742)
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 6a527303..094b187b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -47,6 +47,6 @@ RUN ./docker/finalize.sh
# Configure Docker Container
VOLUME ["/data", "/backup"]
EXPOSE 22 3000
-HEALTHCHECK CMD (nc -z -w 3 localhost 22 && curl -o /dev/null -sS http://localhost:3000/healthcheck) || exit 1
+HEALTHCHECK CMD (curl -o /dev/null -sS http://localhost:3000/healthcheck) || exit 1
ENTRYPOINT ["/app/gogs/docker/start.sh"]
CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]