You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
385 B
13 lines
385 B
FROM python:3.7
|
|
RUN mkdir -p /usr/src/app/
|
|
COPY pip.conf /root/.pip/
|
|
COPY . /usr/src/app/
|
|
RUN pip install --upgrade pip
|
|
RUN pip install -r /usr/src/app/requirements.txt
|
|
#更新apt-get源 使用163的源
|
|
COPY sources.list /etc/apt/
|
|
RUN apt-get update \
|
|
&& apt-get install privoxy shadowsocks-libev -y
|
|
COPY privoxy_config /etc/privoxy/config
|
|
WORKDIR /usr/src/app/
|
|
CMD ["sh", "./run.sh"]
|
|
|