From e63bc987063c33040e5c012b3321fb0517499929 Mon Sep 17 00:00:00 2001 From: Sah Date: Sat, 3 Jan 2015 20:44:42 +0800 Subject: [PATCH] Update Dockerfile --- docker/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index acd6253..811596b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,15 +7,14 @@ RUN apt-get update RUN apt-get install -y git-core python python-setuptools # Get the latest code, build and install -RUN git clone https://github.com/shadowsocks/shadowsocks.git -RUN cd shadowsocks +RUN git clone https://github.com/shadowsocks/shadowsocks.git /tmp +WORKDIR /tmp/shadowsocks RUN python setup.py build RUN python setup.py install # Tear down building environment and delete git repository RUN apt-get --purge autoremove -y git-core python python-setuptools -RUN cd .. -RUN rm -rf shadowsocks +RUN rm -rf /tmp/shadowsocks # Config file can be in a separated container ENV CONF /etc/shadowsocks.json