mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
b2591235a4
* tor images/Dockerfile: Use latest instead of edge. * tor-relay/Dockerfile: Create volume so keys can be persisted.
29 lines
519 B
Docker
29 lines
519 B
Docker
# run a tor socks proxy in a container
|
|
#
|
|
# docker run -d \
|
|
# --restart always \
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
# -p 9050:9050 \
|
|
# --name torproxy \
|
|
# jess/tor-proxy
|
|
#
|
|
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
RUN apk --no-cache add \
|
|
tor
|
|
|
|
# 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" ]
|