File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG DANTE_SHA256=1973c7732f1f9f0a4c0ccf2c1ce462c7c25060b25643ea90f9b98f53a813fae
66
77RUN <<EOR
88apt-get update
9- apt-get install -y build-essential curl
9+ DEBIAN_FRONTEND= "noninteractive" apt-get install -y build-essential curl
1010EOR
1111
1212RUN <<EOR
2323FROM debian:trixie-slim AS runtime
2424
2525COPY --from=base /usr/local/sbin/sockd /usr/local/sbin/sockd
26-
2726COPY --chmod=0755 entrypoint.sh /entrypoint.sh
2827
2928ENTRYPOINT ["/entrypoint.sh" ]
29+ HEALTHCHECK --interval=30s --timeout=3s --start-interval=5s \
30+ CMD cat /proc/$(cat /var/run/sockd.pid)/status | grep State | grep -E 'R \( running\) |S \( sleeping\) '
3031CMD ["/usr/local/sbin/sockd" ]
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
3+ umask 0077
34
45if [ -z " ${PROXY_USERS:- } " ]; then
56 echo " Error: PROXY_USERS env var is not set (format: user1:pass1,user2:pass2)"
5960
6061# Replace the placeholder with the generated configuration
6162echo " $DANTE_CONFIG " > /etc/sockd.conf
62- chmod 0600 /etc/sockd.conf
6363
6464exec " $@ "
You can’t perform that action at this time.
0 commit comments