Changed tor images to :latest alpine and made volume for the relay keys (#274)

* tor images/Dockerfile: Use latest instead of edge.

* tor-relay/Dockerfile: Create volume so keys can be persisted.
This commit is contained in:
Jon Davies 2017-06-20 14:46:19 +01:00 committed by Jess Frazelle
parent 5299cde542
commit b2591235a4
2 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@
# --name torproxy \
# jess/tor-proxy
#
FROM alpine:edge
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apk --no-cache add \

View File

@ -16,7 +16,7 @@
# --name tor-relay \
# jess/tor-relay -f /etc/tor/torrc.exit
#
FROM alpine:edge
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apk --no-cache add \
@ -36,4 +36,8 @@ RUN chown -R tor /etc/tor
USER tor
RUN mkdir /var/lib/tor/.tor
VOLUME /var/lib/tor/.tor
RUN chown -R tor /var/lib/tor/.tor
ENTRYPOINT [ "tor" ]