tor-socks-proxy/Dockerfile

18 lines
481 B
Text
Raw Normal View History

2018-02-03 17:11:48 +00:00
FROM alpine:3.7
2017-01-10 01:17:07 +00:00
MAINTAINER Peter Dave Hello <hsu@peterdavehello.org>
RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
apk -U upgrade && \
2018-02-23 19:29:31 +00:00
apk -v add tor@edge curl && \
2017-01-10 01:17:07 +00:00
rm -rf /var/cache/apk/*
RUN tor --version
ADD torrc /etc/tor/
2018-02-23 19:29:31 +00:00
HEALTHCHECK --timeout=10s --start-period=60s \
CMD curl --fail --socks5-hostname localhost:9150 -I -L 'https://cdnjs.com/' || exit 1
2017-01-10 01:17:07 +00:00
EXPOSE 9150
CMD /usr/bin/tor -f /etc/tor/torrc