Update Dockerfile

This commit is contained in:
Sah 2015-01-03 20:44:42 +08:00
parent 03ce18e728
commit e63bc98706

View file

@ -7,15 +7,14 @@ RUN apt-get update
RUN apt-get install -y git-core python python-setuptools RUN apt-get install -y git-core python python-setuptools
# Get the latest code, build and install # Get the latest code, build and install
RUN git clone https://github.com/shadowsocks/shadowsocks.git RUN git clone https://github.com/shadowsocks/shadowsocks.git /tmp
RUN cd shadowsocks WORKDIR /tmp/shadowsocks
RUN python setup.py build RUN python setup.py build
RUN python setup.py install RUN python setup.py install
# Tear down building environment and delete git repository # Tear down building environment and delete git repository
RUN apt-get --purge autoremove -y git-core python python-setuptools RUN apt-get --purge autoremove -y git-core python python-setuptools
RUN cd .. RUN rm -rf /tmp/shadowsocks
RUN rm -rf shadowsocks
# Config file can be in a separated container # Config file can be in a separated container
ENV CONF /etc/shadowsocks.json ENV CONF /etc/shadowsocks.json