tor.Dockerfile 284 B

12345678910
  1. FROM alpine:3.18
  2. RUN apk --update --no-cache --no-progress add tor
  3. USER tor
  4. CMD tor --SocksPort 0.0.0.0:${TOR_SOCKS_PORT} --ControlPort 0.0.0.0:${TOR_CONTROL_PORT} --HashedControlPassword $(tor --quiet --hash-password $TOR_CONTROL_PASSWD)
  5. EXPOSE $TOR_SOCKS_PORT $TOR_CONTROL_PORT