1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/tor/Dockerfile

40 lines
1.0 KiB
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 \
gmp-dev \
2015-09-28 09:33:24 +02:00
git \
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 \
go \
2015-06-18 13:49:42 +02:00
gmp-dev \
python-dev \
2015-09-28 09:33:24 +02:00
&& rm -rf /var/cache/apk/* \
&& mkdir -p /home/tor/.tor \
&& chown -R tor:nogroup /home/tor \
2015-06-18 12:10:26 +02:00
COPY ./torrc /etc/tor/torrc
2015-09-28 07:30:31 +02:00
USER tor
WORKDIR /home/tor
VOLUME /etc/tor /home/tor/.tor
2015-06-18 12:10:26 +02:00
EXPOSE 9001 9030 9050 9051
CMD ["/usr/bin/tor", "-f", "/etc/tor/torrc"]