2025-11-13 07:23:20 +03:00
|
|
|
FROM ubuntu:24.04
|
2018-05-27 15:12:17 +05:00
|
|
|
|
2020-09-29 21:29:49 +08:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y python3 python3-uvloop python3-cryptography python3-socks libcap2-bin ca-certificates && rm -rf /var/lib/apt/lists/*
|
2025-11-13 07:23:20 +03:00
|
|
|
RUN setcap cap_net_bind_service=+ep /usr/bin/python3.12
|
2018-05-27 15:12:17 +05:00
|
|
|
|
2020-02-13 04:13:49 +05:00
|
|
|
RUN useradd tgproxy -u 10000
|
2019-10-09 01:56:48 +05:00
|
|
|
|
2018-05-27 15:12:17 +05:00
|
|
|
USER tgproxy
|
|
|
|
|
|
|
|
|
|
WORKDIR /home/tgproxy/
|
2020-04-27 20:22:57 +08:00
|
|
|
|
|
|
|
|
COPY --chown=tgproxy mtprotoproxy.py config.py /home/tgproxy/
|
|
|
|
|
|
2019-07-23 18:01:44 +05:00
|
|
|
CMD ["python3", "mtprotoproxy.py"]
|