diff --git a/docker/Dockerfile b/docker/Dockerfile index 811596b..9a729ff 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,19 +2,22 @@ FROM ubuntu:latest MAINTAINER Sah Lee +ENV BASEDIR / + # Set up building environment 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 /tmp -WORKDIR /tmp/shadowsocks +RUN git clone https://github.com/shadowsocks/shadowsocks.git $BASEDIR +WORKDIR $BASEDIR/shadowsocks +RUN pwd 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 rm -rf /tmp/shadowsocks +RUN rm -rf $BASEDIR/shadowsocks # Config file can be in a separated container ENV CONF /etc/shadowsocks.json