mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-13 04:15:08 +00:00
Refactor Dockerfile with less layer and improved layer cache (#220)
This commit is contained in:
1 parent
18a80e52cd
commit
6ecf0ec9ac
1 file changed
+3
-3
+3
-3
@@ -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"]
|
||||
Reference in new issue
Block a user