Last active
May 25, 2020 16:30
-
-
Save carlostse/77cef0698ef2dffaea7ceebebcfb4af9 to your computer and use it in GitHub Desktop.
Tor Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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