chore: run tor as non-root user
All checks were successful
build-and-push / docker (push) Successful in 1m4s

This commit is contained in:
0x1a8510f2 2024-11-14 01:32:19 +01:00
parent ce6f988c20
commit 7929a19d83
Signed by: 0x1a8510f2
GPG Key ID: 1C692E355D76775D

View File

@ -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"]