Files
mtprotoproxy/Dockerfile
Peter Dave Hello 9c50cab94e Fix file permission in Docker image (#189)
`chown` needs to be done "after" the file copy, otherwise there is no
meaning to do it as /home/tgproxy is default owned by tgproxy already.
2020-02-11 13:50:48 +02:00

16 lines
341 B
Docker

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