diff --git a/Dockerfile b/Dockerfile index 5e4e71d..546c9a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,12 @@ RUN setcap cap_net_bind_service=+ep /usr/local/bin/python3.8 RUN pip3 --no-cache-dir install cryptography uvloop -COPY mtprotoproxy.py config.py /home/tgproxy/ - RUN useradd tgproxy -u 10000 -RUN chown -R tgproxy:tgproxy /home/tgproxy USER tgproxy WORKDIR /home/tgproxy/ + +COPY --chown=tgproxy mtprotoproxy.py config.py /home/tgproxy/ + CMD ["python3", "mtprotoproxy.py"]