2015-09-12 00:08:20 +02:00
|
|
|
# run a tor socks proxy in a container
|
|
|
|
#
|
2015-09-13 07:56:30 +02:00
|
|
|
# docker run -d \
|
|
|
|
# --restart always \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -p 9050:9050 \
|
|
|
|
# --name torproxy \
|
|
|
|
# jess/tor-proxy
|
2015-09-12 00:08:20 +02:00
|
|
|
#
|
|
|
|
FROM alpine:latest
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
2016-07-31 20:27:02 +02:00
|
|
|
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
|
2016-06-06 05:40:20 +02:00
|
|
|
tor
|
2015-09-12 00:08:20 +02:00
|
|
|
|
|
|
|
# expose socks port
|
|
|
|
EXPOSE 9050
|
|
|
|
|
|
|
|
# copy in our torrc file
|
|
|
|
COPY torrc.default /etc/tor/torrc.default
|
|
|
|
|
|
|
|
# make sure files are owned by tor user
|
|
|
|
RUN chown -R tor /etc/tor
|
|
|
|
|
|
|
|
USER tor
|
|
|
|
|
|
|
|
ENTRYPOINT [ "tor" ]
|
|
|
|
CMD [ "-f", "/etc/tor/torrc.default" ]
|