From 7929a19d83d1b076f3589d0b24ac75004fc48a09 Mon Sep 17 00:00:00 2001 From: 0x1a8510f2 Date: Thu, 14 Nov 2024 01:32:19 +0100 Subject: [PATCH] chore: run tor as non-root user --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a6e64b0..658843a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ 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 +USER hidden + CMD ["tor", "-f", "/data/torrc"] \ No newline at end of file