Update Dockerfile
This commit is contained in:
parent
03ce18e728
commit
e63bc98706
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue