diff --git a/Dockerfile b/Dockerfile index 8be0132..f6cd3d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,6 @@ RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \ ENV SEAF_UPGRADE_INTERVAL=3 -HEALTHCHECK --interval=5m --timeout=30s --start-period=30s CMD curl http://localhost:8000 && curl http://localhost:8082 && bash -c '[ $(curl --silent --output /dev/stderr --write-out "%{http_code}" http://localhost:8080) -eq 401 ]' || exit 1 +HEALTHCHECK --interval=30s --timeout=30s --start-period=30s CMD (curl http://localhost:8000 || (echo "failed seahub"; exit 1)) && (curl http://localhost:8082 || (echo "failed seafhttp"; exit 1)) && (bash -c '[ $(curl --silent --output /dev/null --write-out "%{http_code}" http://localhost:8080) -eq 401 ]' || (echo "failed seafdav"; exit 1)) || exit 1 ENTRYPOINT ["/usr/sbin/riffol", "-f", "/etc/riffol.conf"]