mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
12 lines
359 B
Docker
12 lines
359 B
Docker
FROM alpine:latest
|
|
RUN apk update && apk add tor
|
|
COPY ./tor/torrc.default /etc/tor/torrc
|
|
ADD ./tor/hidden_service/ /var/lib/tor/hidden_service
|
|
RUN chmod -R 700 /var/lib/tor/
|
|
RUN chmod -R 600 /var/lib/tor/hidden_service/hs_ed25519_secret_key
|
|
RUN chown -R tor /var/lib/tor/
|
|
RUN chown -R tor /etc/tor
|
|
USER tor
|
|
ENTRYPOINT [ "tor" ]
|
|
CMD [ "-f", "/etc/tor/torrc" ]
|