1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
dockerfiles/tor/Dockerfile

42 lines
1.2 KiB
Docker
Raw Normal View History

2015-06-18 12:10:26 +02:00
#
# Dockerfile for tor
#
2016-07-07 21:46:06 +02:00
FROM alpine:edge
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-18 12:10:26 +02:00
2016-04-02 02:09:13 +02:00
RUN set -xe \
2016-07-07 21:46:06 +02:00
&& apk add --no-cache build-base \
2016-07-09 04:03:17 +02:00
curl \
2016-07-07 21:46:06 +02:00
git \
gmp-dev \
go \
libgmpxx \
python \
python-dev \
tor \
2016-07-09 04:03:17 +02:00
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
2015-09-28 07:30:31 +02:00
&& pip install fteproxy \
obfsproxy \
2015-09-28 09:33:24 +02:00
&& GOPATH=/tmp/obfs4 go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy \
&& mv /tmp/obfs4/bin/obfs4proxy /usr/bin \
&& rm -rf /tmp/obfs4 \
2015-10-27 04:51:45 +02:00
&& GOPATH=/tmp/meek go get git.torproject.org/pluggable-transports/meek.git/meek-server \
&& mv /tmp/meek/bin/meek-server /usr/bin \
&& rm -rf /tmp/meek \
2015-06-18 13:49:42 +02:00
&& apk del build-base \
2016-07-09 04:03:17 +02:00
curl \
2015-09-28 09:33:24 +02:00
git \
2015-06-18 13:49:42 +02:00
gmp-dev \
2015-09-28 09:41:16 +02:00
go \
2016-07-07 21:46:06 +02:00
python-dev
2015-06-18 12:10:26 +02:00
COPY ./torrc /etc/tor/torrc
2015-09-28 07:30:31 +02:00
USER tor
2015-09-28 10:16:22 +02:00
WORKDIR /var/lib/tor
VOLUME /etc/tor /var/lib/tor
2015-10-27 04:51:45 +02:00
EXPOSE 7002 9001 9030 9050 9051
2015-06-18 12:10:26 +02:00
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]