Dockerfile.tor 347 B

1234567891011
  1. FROM alpine:3.16.0
  2. RUN apk --update --no-cache --no-progress add tor
  3. CMD hashed_control_password=$(tor --quiet --hash-password $TOR_CONTROL_PASSWD) \
  4. && tor --SocksPort 0.0.0.0:$TOR_SOCKS_PORT \
  5. --ControlPort 0.0.0.0:$TOR_CONTROL_PORT \
  6. --HashedControlPassword $hashed_control_password
  7. EXPOSE $TOR_SOCKS_PORT $TOR_CONTROL_PORT