Browse Source

Added creation of tor user and group

Jindrich Skacel 6 years ago
parent
commit
05fa2b18f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tor/Dockerfile

+ 2 - 1
tor/Dockerfile

@@ -1,7 +1,8 @@
 FROM ronnicek/alpine
 
 # Note: Tor is only in testing repo
-RUN apk update && apk add \
+RUN addgroup -g 6660 tor && adduser -u 6660 -H -h /var/lib/tor tor -s /sbin/nologin -G tor -D tor && \
+    apk update && apk add \
     tor \
     --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
     && rm -rf /var/cache/apk/*