瀏覽代碼

Run container as tor user

Agus Lopez 1 年之前
父節點
當前提交
5094434e93
共有 1 個文件被更改,包括 2 次插入0 次删除
  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"]