From 694077ef7d8e1e651a963383c0a562337f29f418 Mon Sep 17 00:00:00 2001 From: partoftheworlD Date: Sat, 31 Oct 2026 10:24:43 +0300 Subject: [PATCH] Improved Dockerfile entrypoint readability (#1503) --- Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 79d51e7..6a3a8fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,5 +45,17 @@ USER app EXPOSE 1443/tcp -ENTRYPOINT ["/usr/bin/tini", "--", "/bin/sh", "-lc", "set -eu; args=\"--host ${TG_WS_PROXY_HOST} --port ${TG_WS_PROXY_PORT}\"; for dc in ${TG_WS_PROXY_DC_IPS}; do args=\"$args --dc-ip $dc\"; done; if [ -n \"${TG_WS_PROXY_SECRET}\" ]; then args=\"$args --secret ${TG_WS_PROXY_SECRET}\"; fi; if [ -n \"${TG_WS_PROXY_CF_WORKER}\" ]; then args=\"$args --cfproxy-worker-domain ${TG_WS_PROXY_CF_WORKER}\"; fi; if [ \"${TG_WS_PROXY_NO_SECURE}\" = \"True\" ]; then args=\"$args --no-secure \"; fi; exec /opt/venv/bin/python -u proxy/tg_ws_proxy.py $args \"$@\"", "--"] +ENTRYPOINT ["/usr/bin/tini", "--", "/bin/sh", "-lc", "set -eu; args=\"\ + --host ${TG_WS_PROXY_HOST} \ + --port ${TG_WS_PROXY_PORT}\"; \ + for dc in ${TG_WS_PROXY_DC_IPS}; \ + do args=\"$args --dc-ip $dc\"; \ + done; \ + if [ -n \"${TG_WS_PROXY_SECRET}\" ]; \ + then args=\"$args --secret ${TG_WS_PROXY_SECRET}\"; fi; \ + if [ -n \"${TG_WS_PROXY_CF_WORKER}\" ]; \ + then args=\"$args --cfproxy-worker-domain ${TG_WS_PROXY_CF_WORKER}\"; fi; \ + if [ \"${TG_WS_PROXY_NO_SECURE}\" = \"True\" ]; \ + then args=\"$args --no-secure \"; fi; \ + exec /opt/venv/bin/python -u proxy/tg_ws_proxy.py $args \"$@\"", "--"] CMD [] \ No newline at end of file