mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-14 07:13:09 +00:00
allows to bind on privilleged ports
This commit is contained in:
@@ -2,12 +2,13 @@ FROM alpine:3.6
|
|||||||
|
|
||||||
RUN adduser tgproxy -u 10000 -D
|
RUN adduser tgproxy -u 10000 -D
|
||||||
|
|
||||||
RUN apk add --no-cache python3 py3-crypto ca-certificates
|
RUN apk add --no-cache python3 py3-crypto ca-certificates libcap
|
||||||
|
|
||||||
COPY mtprotoproxy.py config.py /home/tgproxy/
|
COPY mtprotoproxy.py config.py /home/tgproxy/
|
||||||
COPY pyaes/*.py /home/tgproxy/pyaes/
|
COPY pyaes/*.py /home/tgproxy/pyaes/
|
||||||
|
|
||||||
RUN chown -R tgproxy:tgproxy /home/tgproxy
|
RUN chown -R tgproxy:tgproxy /home/tgproxy
|
||||||
|
RUN setcap cap_net_bind_service=+ep /usr/bin/python3.6
|
||||||
|
|
||||||
USER tgproxy
|
USER tgproxy
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ services:
|
|||||||
mtprotoproxy:
|
mtprotoproxy:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
mem_limit: 1024m
|
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
|
# mem_limit: 1024m
|
||||||
|
|||||||
Reference in New Issue
Block a user