Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/torrelay/Dockerfile
Joerg Elfring 0a785dd09d Tor: Go back to alpine 3.8
as 3.9 / latest / edge show some ssl problems
2019-02-19 18:40:27 +01:00

24 lines
527 B
Docker

FROM alpine:3.8
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
RUN apk --update --no-cache add tor
COPY ./assets/torrc.relay /etc/tor/torrc.relay
COPY ./assets/entrypoint.sh /etc/tor/entrypoint.sh
RUN chown -R tor /etc/tor \
&& chmod 755 /etc/tor/entrypoint.sh \
&& mkdir /var/run/tor \
&& chown tor /var/run/tor
ENV TOR_NICK="Landesverrat" \
TOR_CONTACT="Not Provided" \
TOR_BRIDGE=0
VOLUME /var/lib/tor
# tor port as defined in torrc
EXPOSE 9001 9030
USER tor
ENTRYPOINT [ "/etc/tor/entrypoint.sh" ]