use cryptography module in docker file, do not copy pyaes

This commit is contained in:
Alexander Bersenev
2018-06-29 01:07:16 +05:00
parent 532021ab87
commit 3477402c0d

View File

@@ -2,10 +2,9 @@ FROM alpine:3.6
RUN adduser tgproxy -u 10000 -D
RUN apk add --no-cache python3 py3-crypto ca-certificates libcap
RUN apk add --no-cache python3 py3-cryptography ca-certificates libcap
COPY mtprotoproxy.py config.py /home/tgproxy/
COPY pyaes/*.py /home/tgproxy/pyaes/
RUN chown -R tgproxy:tgproxy /home/tgproxy
RUN setcap cap_net_bind_service=+ep /usr/bin/python3.6