2015-12-09 00:30:18 +01:00
|
|
|
# run tor in a container
|
|
|
|
#
|
|
|
|
# docker run -d \
|
|
|
|
# --restart always \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
2015-12-15 22:18:35 +01:00
|
|
|
# -p 9040:22340 \
|
|
|
|
# -p 5353:22353 \
|
2015-12-09 00:30:18 +01:00
|
|
|
# --name tor-router \
|
|
|
|
# jess/tor-router
|
|
|
|
#
|
|
|
|
FROM debian:sid
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
tor \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2015-12-15 22:18:35 +01:00
|
|
|
EXPOSE 22340
|
|
|
|
EXPOSE 22350
|
|
|
|
EXPOSE 22353
|
2015-12-09 00:30:18 +01:00
|
|
|
|
|
|
|
# copy in our torrc file
|
|
|
|
COPY torrc.default /etc/tor/torrc.default
|
|
|
|
|
|
|
|
# make sure files are owned by tor user
|
|
|
|
RUN chown -R debian-tor:debian-tor /etc/tor/torrc.default
|
|
|
|
|
|
|
|
USER debian-tor
|
|
|
|
|
|
|
|
ENTRYPOINT [ "tor" ]
|
|
|
|
CMD [ "-f", "/etc/tor/torrc.default" ]
|