We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e79e991 commit c1cbed3Copy full SHA for c1cbed3
src/socks-proxy/Dockerfile
@@ -22,16 +22,10 @@ EOR
22
23
FROM debian:trixie-slim AS runtime
24
25
-RUN <<EOR
26
-apt-get update
27
-DEBIAN_FRONTEND="noninteractive" apt-get install -y netcat-traditional
28
-rm -rf /var/lib/apt/lists/*
29
-EOR
30
-
31
COPY --from=base /usr/local/sbin/sockd /usr/local/sbin/sockd
32
COPY --chmod=0755 entrypoint.sh /entrypoint.sh
33
34
ENTRYPOINT ["/entrypoint.sh"]
35
-HEALTHCHECK --interval=1m --timeout=3s --start-interval=5s \
36
- CMD nc -zv localhost ${PROXY_INTERNAL_PORT:-1080}
+HEALTHCHECK --interval=30s --timeout=3s --start-interval=5s \
+ CMD cat /proc/$(cat /var/run/sockd.pid)/status | grep State | grep -E 'R \(running\)|S \(sleeping\)'
37
CMD ["/usr/local/sbin/sockd"]
0 commit comments