chore: run tor as non-root user
All checks were successful
build-and-push / docker (push) Successful in 1m4s
All checks were successful
build-and-push / docker (push) Successful in 1m4s
This commit is contained in:
parent
ce6f988c20
commit
7929a19d83
@ -1,7 +1,9 @@
|
|||||||
FROM alpine:3.20
|
FROM alpine:3.20
|
||||||
|
|
||||||
RUN apk update && apk add tor
|
RUN apk update && apk add tor && adduser -u 705 -D -S -s /bin/nologin hidden
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
|
USER hidden
|
||||||
|
|
||||||
CMD ["tor", "-f", "/data/torrc"]
|
CMD ["tor", "-f", "/data/torrc"]
|
Loading…
x
Reference in New Issue
Block a user