Update Dockerfile (#1675)

This commit is contained in:
AlexUWP
2026-11-22 16:04:09 +03:00
committed by GitHub
parent 9f71904e1a
commit 0c9333bbab
+8 -2
View File
@@ -27,7 +27,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
TG_WS_PROXY_SECRET="" \
TG_WS_PROXY_DC_IPS="2:149.154.167.220 4:149.154.167.220" \
TG_WS_PROXY_CF_WORKER="" \
TG_WS_PROXY_NO_SECURE=False
TG_WS_PROXY_NO_SECURE=False \
TG_WS_PROXY_PROXY_PROTOCOL=False \
TG_WS_PROXY_FAKE_TLS_DOMAIN=""
RUN apt-get update \
&& apt-get install -y --no-install-recommends tini ca-certificates \
@@ -57,5 +59,9 @@ ENTRYPOINT ["/usr/bin/tini", "--", "/bin/sh", "-lc", "set -eu; args=\"\
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; \
if [ \"${TG_WS_PROXY_PROXY_PROTOCOL}\" = \"True\" ]; \
then args=\"$args --proxy-protocol \"; fi; \
if [ -n \"${TG_WS_PROXY_FAKE_TLS_DOMAIN}\" ]; \
then args=\"$args --fake-tls-domain ${TG_WS_PROXY_FAKE_TLS_DOMAIN} \"; fi; \
exec /opt/venv/bin/python -u proxy/tg_ws_proxy.py $args \"$@\"", "--"]
CMD []
CMD []