mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-13 22:06:55 +02:00
update tor
This commit is contained in:
parent
f9051746ee
commit
5000671539
@ -2,44 +2,30 @@
|
|||||||
# Dockerfile for tor
|
# Dockerfile for tor
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine:edge
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV TOR_VER 0.2.6.9
|
RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
||||||
ENV TOR_URL https://www.torproject.org/dist/tor-$TOR_VER.tar.gz
|
&& apk add -U build-base \
|
||||||
ENV TOR_MD5 4a1b334c30d7b37ea72fa33425220d5d
|
gmp-dev \
|
||||||
ENV TOR_FILE tor.tar.gz
|
libgmpxx \
|
||||||
ENV TOR_TEMP tor-$TOR_VER
|
py-pip \
|
||||||
|
python \
|
||||||
RUN apk add -U build-base \
|
python-dev \
|
||||||
gmp-dev \
|
tor \
|
||||||
libevent \
|
&& pip install fteproxy \
|
||||||
libevent-dev \
|
obfsproxy \
|
||||||
libgmpxx \
|
|
||||||
openssl \
|
|
||||||
openssl-dev \
|
|
||||||
python \
|
|
||||||
python-dev \
|
|
||||||
&& wget -O $TOR_FILE $TOR_URL \
|
|
||||||
&& echo "$TOR_MD5 $TOR_FILE" | md5sum -c \
|
|
||||||
&& tar xzf $TOR_FILE \
|
|
||||||
&& cd $TOR_TEMP \
|
|
||||||
&& ./configure --prefix=/ --exec-prefix=/usr \
|
|
||||||
&& make install \
|
|
||||||
&& cd .. \
|
|
||||||
&& rm -rf $TOR_FILE $TOR_TEMP \
|
|
||||||
&& wget -O- https://bootstrap.pypa.io/get-pip.py | python \
|
|
||||||
&& pip install fteproxy \
|
|
||||||
obfsproxy \
|
|
||||||
&& apk del build-base \
|
&& apk del build-base \
|
||||||
gmp-dev \
|
gmp-dev \
|
||||||
libevent-dev \
|
|
||||||
openssl-dev \
|
|
||||||
python-dev \
|
python-dev \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY ./torrc /etc/tor/torrc
|
COPY ./torrc /etc/tor/torrc
|
||||||
VOLUME /etc/tor /root/.tor
|
|
||||||
|
USER tor
|
||||||
|
WORKDIR /home/tor
|
||||||
|
|
||||||
|
VOLUME /etc/tor /home/tor/.tor
|
||||||
EXPOSE 9001 9030 9050 9051
|
EXPOSE 9001 9030 9050 9051
|
||||||
|
|
||||||
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]
|
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
tor
|
tor
|
||||||
===
|
===
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
[`Tor`][1] is free software and an open network that helps you defend against
|
[`Tor`][1] is free software and an open network that helps you defend against
|
||||||
traffic analysis, a form of network surveillance that threatens personal
|
traffic analysis, a form of network surveillance that threatens personal
|
||||||
freedom and privacy, confidential business activities and relationships, and
|
freedom and privacy, confidential business activities and relationships, and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user