From 1fe4b64228129971b5b5f3e3d9a97f96aa0668bc Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 8 Jul 2016 03:46:06 +0800 Subject: [PATCH] update tor --- tor/Dockerfile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/tor/Dockerfile b/tor/Dockerfile index ec4c8a3..b4147d7 100644 --- a/tor/Dockerfile +++ b/tor/Dockerfile @@ -2,20 +2,19 @@ # Dockerfile for tor # -FROM alpine +FROM alpine:edge MAINTAINER kev RUN set -xe \ - && echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \ - && apk add -U build-base \ - git \ - gmp-dev \ - go \ - libgmpxx \ - py-pip \ - python \ - python-dev \ - tor \ + && apk add --no-cache build-base \ + git \ + gmp-dev \ + go \ + libgmpxx \ + py-pip \ + python \ + python-dev \ + tor \ && pip install fteproxy \ obfsproxy \ && GOPATH=/tmp/obfs4 go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy \ @@ -28,8 +27,7 @@ RUN set -xe \ git \ gmp-dev \ go \ - python-dev \ - && rm -rf /var/cache/apk/* + python-dev COPY ./torrc /etc/tor/torrc