add dockerfile and config
This commit is contained in:
15
docker/Dockerfile
Normal file
15
docker/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
## syntax=docker/dockerfile:3
|
||||
|
||||
FROM alpine
|
||||
|
||||
# Install tor
|
||||
RUN apk --no-cache add tor
|
||||
|
||||
# Copy config
|
||||
COPY ./torrc /etc/tor/torrc
|
||||
|
||||
CMD chmod 700 /var/lib/tor/hidden-service ;\
|
||||
chown -R tor /var/lib/tor/hidden-service;\
|
||||
cat /var/lib/tor/hidden-service/hostname 2>/dev/null;\
|
||||
/usr/bin/tor -f /etc/tor/torrc --runasdaemon 0
|
||||
|
||||
Reference in New Issue
Block a user