1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2015-09-28 16:16:22 +08:00
parent 9a40659ce6
commit e9f061a465
3 changed files with 5 additions and 5 deletions

View File

@ -25,15 +25,13 @@ RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositor
gmp-dev \
go \
python-dev \
&& rm -rf /var/cache/apk/* \
&& mkdir -p /home/tor/.tor \
&& chown -R tor:nogroup /home/tor
&& rm -rf /var/cache/apk/*
COPY ./torrc /etc/tor/torrc
USER tor
WORKDIR /home/tor
VOLUME /etc/tor /home/tor/.tor
WORKDIR /var/lib/tor
VOLUME /etc/tor /var/lib/tor
EXPOSE 9001 9030 9050 9051
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]

View File

@ -41,6 +41,7 @@ BridgeRelay 1
Exitpolicy reject *:*
Nickname datageek
ContactInfo noreply@datageek.info
DataDirectory /var/lib/tor
#ServerTransportPlugin fte exec /usr/bin/fteproxy --mode server --managed
#ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy

View File

@ -4,6 +4,7 @@ BridgeRelay 1
Exitpolicy reject *:*
Nickname datageek
ContactInfo noreply@datageek.info
DataDirectory /var/lib/tor
#ServerTransportPlugin fte exec /usr/bin/fteproxy --mode server --managed
#ServerTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy