Browse Source

Run container as tor user

Agus Lopez 1 year ago
parent
commit
5094434e93
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -13,5 +13,7 @@ EXPOSE 9050/tcp
 HEALTHCHECK --interval=5m --timeout=5s \
   CMD timeout 2 curl -sfo /dev/null --socks5-hostname 127.0.0.1:9050 'https://check.torproject.org'
 
+USER tor
+
 ENTRYPOINT ["/usr/bin/tor"]
 CMD ["-f", "/etc/tor/torrc"]