Added existing project files

This commit is contained in:
bj
2022-01-05 09:32:46 +02:00
parent 3d02504d7f
commit ff20e94032
4 changed files with 64 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM alpine
ARG SVC_LISTEN_PORT
ARG SVC_TARGET_HOST
ARG SVC_TARGET_PORT
WORKDIR /etc/tor
RUN apk add --no-cache curl tor && \
echo -e "HiddenServiceDir /var/lib/tor/svc/\nHiddenServicePort $SVC_LISTEN_PORT $SVC_TARGET_HOST:$SVC_TARGET_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/local/bin/
COPY svc-hostname /usr/local/bin/
#USER tor
CMD [ "tor.sh", "$SVC_TARGET_HOST" ]