Skip to content

Instantly share code, notes, and snippets.

@carlostse
Last active May 25, 2020 16:30
Show Gist options
  • Select an option

  • Save carlostse/77cef0698ef2dffaea7ceebebcfb4af9 to your computer and use it in GitHub Desktop.

Select an option

Save carlostse/77cef0698ef2dffaea7ceebebcfb4af9 to your computer and use it in GitHub Desktop.
Tor Dockerfile
FROM debian:buster
RUN apt-get update; apt-get install -y gzip curl make gcc libevent-dev libssl-dev zlib1g-dev
RUN curl -L https://dist.torproject.org/tor-0.4.3.5.tar.gz | gzip -dc | tar x -C ~/
RUN cd ~/tor-0.4.3.5; ./configure --prefix=/opt/tor; make; make install; chmod +x /opt/tor/bin/*; cd ~
RUN apt-get purge -y curl make gcc zlib1g-dev; apt-get autoremove --purge -y; rm -rf /var/lib/apt/lists; rm -rf ~/tor-0.4.3.5
COPY torrc /opt/tor/etc/
ENTRYPOINT ["/opt/tor/bin/tor"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment