Files
mtprotoproxy/Dockerfile
2018-07-10 19:22:04 +05:00

16 lines
331 B
Docker

FROM alpine:3.8
RUN adduser tgproxy -u 10000 -D
RUN apk add --no-cache python3 py3-cryptography ca-certificates libcap
COPY mtprotoproxy.py config.py /home/tgproxy/
RUN chown -R tgproxy:tgproxy /home/tgproxy
RUN setcap cap_net_bind_service=+ep /usr/bin/python3.6
USER tgproxy
WORKDIR /home/tgproxy/
CMD ["./mtprotoproxy.py"]