From cd138f9dbe3aaacf519fafabce23e8ad862e2197 Mon Sep 17 00:00:00 2001 From: AntiTree Date: Sat, 9 Jul 2016 19:38:08 -0400 Subject: [PATCH] Removing xterm support and supporting various tor versions --- Dockerfile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a8c03f..c2889a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,10 +16,18 @@ FROM debian:jessie MAINTAINER Antitree antitree@protonmail.com +# Sets which version of tor to use. See the Tor Projects git page for available tags +# Examples: +# * tor-0.2.8.4-rc +# * tor-0.2.7.6 +# * tor-0.2.7.5 +# * release-0.2.1 +ENV TOR_VER="master" +ENV TOR_VER="release-0.2.1" + # Sets the nickname if you didn't set one, default ports, and the path # where to mount the key material used by the clients. -ENV TOR_NICKNAME=Tor4 \ - TERM=xterm \ +ENV TERM=xterm \ TOR_ORPORT=7000 \ TOR_DIRPORT=9030 \ TOR_DIR=/tor @@ -41,7 +49,10 @@ RUN mkdir /src && \ cd /src && \ git clone https://git.torproject.org/tor.git && \ cd tor && \ - ./autogen.sh && \ + git checkout ${TOR_VER} + + +RUN ./autogen.sh && \ ./configure --disable-asciidoc && \ make && \ make install && \