Skip to content

Commit

Permalink
Secure enhance for the Tor
Browse files Browse the repository at this point in the history
  • Loading branch information
WaybackBot committed Jul 25, 2020
1 parent edb5594 commit adc36d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ RUN cd /tmp/wayback && make linux-amd64 && mv ./bin/wayback-linux-amd64 /wayback
############################
FROM alpine:3.12

LABEL maintainer "WaybackBot <wabarc@tutanota.com>"
LABEL maintainer "WaybackBot <wabarc@tuta.io>"
COPY --from=builder /wayback /usr/local/bin
RUN apk update && apk add ca-certificates tor
RUN mv /etc/tor/torrc.sample /etc/tor/torrc
RUN echo 'ExcludeNodes {cn},{hk},{mo},{kp},{ir},{sy},{pk},{cu},{vn},{ru}' >> /etc/tor/torrc
RUN echo 'ExcludeExitNodes {cn},{hk},{mo},{sg},{th},{pk},{by},{ru},{ir},{vn},{ph},{my},{cu}' >> /etc/tor/torrc
RUN echo 'StrictNodes 1' >> /etc/tor/torrc

USER tor
WORKDIR /tmp
Expand Down

0 comments on commit adc36d7

Please sign in to comment.