1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/tor/Dockerfile

38 lines
966 B
Docker
Raw Normal View History

2015-06-18 12:10:26 +02:00
#
# Dockerfile for tor
#
2015-09-28 07:30:31 +02:00
FROM alpine:edge
2015-06-18 12:10:26 +02:00
MAINTAINER kev <noreply@datageek.info>
2015-09-28 07:30:31 +02:00
RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
&& apk add -U build-base \
2015-09-28 09:33:24 +02:00
git \
2015-09-28 09:41:16 +02:00
gmp-dev \
2015-09-28 09:33:24 +02:00
go \
2015-09-28 07:30:31 +02:00
libgmpxx \
py-pip \
python \
python-dev \
tor \
&& 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-06-18 13:49:42 +02:00
&& apk del build-base \
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 \
2015-06-18 13:49:42 +02:00
python-dev \
2015-09-28 10:16:22 +02:00
&& rm -rf /var/cache/apk/*
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-06-18 12:10:26 +02:00
EXPOSE 9001 9030 9050 9051
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]