mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-15 00:17:56 +00:00
optimize docker containers for reloading
This commit is contained in:
1 parent
7d11ff07bd
commit
4691917c34
2 files changed
+5
-4
No files matched your search
+2
-4
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user