mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-11 03:13:42 +00:00
Fix file permission in Docker image (#189)
`chown` needs to be done "after" the file copy, otherwise there is no meaning to do it as /home/tgproxy is default owned by tgproxy already.
This commit is contained in:
1 parent
199eaeb7c4
commit
9c50cab94e
1 file changed
+1
-1
+1
-1
@@ -4,10 +4,10 @@ RUN adduser tgproxy -u 10000 -D
|
||||
|
||||
RUN apk add --no-cache python3 py3-cryptography ca-certificates libcap
|
||||
|
||||
RUN chown -R tgproxy:tgproxy /home/tgproxy
|
||||
RUN setcap cap_net_bind_service=+ep /usr/bin/python3.8
|
||||
|
||||
COPY mtprotoproxy.py config.py /home/tgproxy/
|
||||
RUN chown -R tgproxy:tgproxy /home/tgproxy
|
||||
|
||||
USER tgproxy
|
||||
|
||||
|
||||
Reference in new issue
Block a user