It works!

This commit is contained in:
bj
2020-10-20 18:58:42 +02:00
commit ab0521b401
17 changed files with 350 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM alpine
ARG SVC_HOST
ARG SVC_PORT
WORKDIR /etc/tor
RUN apk add --no-cache curl tor && \
echo -e "HiddenServiceDir /var/lib/tor/svc/\nHiddenServicePort $SVC_PORT $SVC_HOST:$SVC_PORT" > ./torrc
HEALTHCHECK --interval=60s --timeout=15s --start-period=20s \
CMD curl -s --socks5 127.0.0.1:9050 'https://check.torproject.org/' | grep -qm1 Congratulations
COPY tor.sh /usr/bin/
#VOLUME ["/var/lib/tor/svc"]
#USER tor
CMD ["tor.sh"]