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

25 lines
519 B
Text
Raw Normal View History

2017-12-09 16:46:17 +01:00
FROM alpine:edge
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
RUN apk --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 \
2018-03-01 18:36:28 +01:00
&& chmod 755 /etc/tor/entrypoint.sh \
&& mkdir /var/run/tor \
&& chown tor /var/run/tor
2017-12-09 16:46:17 +01:00
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" ]