mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-14 07:13:09 +00:00
Refactor Dockerfile with less layer and improved layer cache (#220)
This commit is contained in:
@@ -5,12 +5,12 @@ RUN setcap cap_net_bind_service=+ep /usr/local/bin/python3.8
|
|||||||
|
|
||||||
RUN pip3 --no-cache-dir install cryptography uvloop
|
RUN pip3 --no-cache-dir install cryptography uvloop
|
||||||
|
|
||||||
COPY mtprotoproxy.py config.py /home/tgproxy/
|
|
||||||
|
|
||||||
RUN useradd tgproxy -u 10000
|
RUN useradd tgproxy -u 10000
|
||||||
RUN chown -R tgproxy:tgproxy /home/tgproxy
|
|
||||||
|
|
||||||
USER tgproxy
|
USER tgproxy
|
||||||
|
|
||||||
WORKDIR /home/tgproxy/
|
WORKDIR /home/tgproxy/
|
||||||
|
|
||||||
|
COPY --chown=tgproxy mtprotoproxy.py config.py /home/tgproxy/
|
||||||
|
|
||||||
CMD ["python3", "mtprotoproxy.py"]
|
CMD ["python3", "mtprotoproxy.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user