From b2591235a430ac8589d66015d347a768d848f54f Mon Sep 17 00:00:00 2001 From: Jon Davies Date: Tue, 20 Jun 2017 14:46:19 +0100 Subject: [PATCH] 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. --- tor-proxy/Dockerfile | 2 +- tor-relay/Dockerfile | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tor-proxy/Dockerfile b/tor-proxy/Dockerfile index 7b248cb..dc50397 100644 --- a/tor-proxy/Dockerfile +++ b/tor-proxy/Dockerfile @@ -7,7 +7,7 @@ # --name torproxy \ # jess/tor-proxy # -FROM alpine:edge +FROM alpine:latest LABEL maintainer "Jessie Frazelle " RUN apk --no-cache add \ diff --git a/tor-relay/Dockerfile b/tor-relay/Dockerfile index e89a829..caf907c 100644 --- a/tor-relay/Dockerfile +++ b/tor-relay/Dockerfile @@ -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 " 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" ]