optimize docker containers for reloading

This commit is contained in:
Alexander Bersenev
2019-07-22 17:21:43 +05:00
parent 7d11ff07bd
commit 4691917c34
2 changed files with 5 additions and 4 deletions

View File

@@ -1,13 +1,11 @@
FROM alpine:3.8
FROM alpine:3.10
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
RUN setcap cap_net_bind_service=+ep /usr/bin/python3.7
USER tgproxy