mtproto-proxy/Dockerfile

16 lines
526 B
Docker
Raw Normal View History

2020-04-14 16:13:56 +00:00
FROM debian:buster
WORKDIR /data
COPY docker-entrypoint.sh /usr/bin
RUN apt update \
&& apt install -y git curl build-essential libssl-dev zlib1g-dev xxd \
&& git clone https://github.com/TelegramMessenger/MTProxy /MTProxy \
&& cd /MTProxy \
&& make \
&& cp objs/bin/mtproto-proxy /usr/bin \
&& curl -s https://core.telegram.org/getProxySecret -o /proxy-secret \
&& curl -s https://core.telegram.org/getProxyConfig -o /proxy-multi.conf
EXPOSE 4443
EXPOSE 8888
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["mtproto"]