From 11b436683366e9817982da2a1dde4b70ec5a920e Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 5 Jun 2026 16:36:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20deploy/tunnel/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/tunnel/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/tunnel/Dockerfile b/deploy/tunnel/Dockerfile index ce379c4..ae9a729 100644 --- a/deploy/tunnel/Dockerfile +++ b/deploy/tunnel/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.21 -RUN apk add --no-cache openssh-server +RUN apk add --no-cache openssh-server netcat-openbsd COPY sshd_config /etc/ssh/sshd_config COPY entrypoint.sh /usr/local/bin/tunnel-entrypoint @@ -9,7 +9,7 @@ RUN chmod 0755 /usr/local/bin/tunnel-entrypoint EXPOSE 22 22000-22099 VOLUME ["/data"] -HEALTHCHECK --interval=15s --timeout=3s --start-period=5s --retries=3 \ - CMD ssh-keyscan -T 2 -p 22 127.0.0.1 >/dev/null 2>&1 || exit 1 +HEALTHCHECK --interval=15s --timeout=3s --start-period=10s --retries=3 \ + CMD nc -z 127.0.0.1 22 || exit 1 ENTRYPOINT ["/usr/local/bin/tunnel-entrypoint"]