加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 857 Bytes
一键复制 编辑 原始数据 按行查看 历史
dengyi0215 提交于 2018-03-30 15:28 . modify dockerfile
FROM vaeum/alpine-python3-pip3
MAINTAINER ResolveWang <resolvewang@foxmail.com>
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apk upgrade --no-cache \
&& apk add --no-cache \
squid \
libxml2-dev \
libxml2 \
libxslt-dev \
libxslt \
libffi-dev \
python3-dev \
&& rm -rf /var/cache/* \
&& rm -rf /root/.cache/*
#RUN apt update
#RUN apt install squid -yq
RUN sed -i 's/http_access deny all/http_access allow all/g' /etc/squid/squid.conf && cp /etc/squid/squid.conf /etc/squid/squid.conf.backup
#RUN apt install python3 python3-pip -yq
#RUN which python3|xargs -i ln -s {} /usr/bin/python
#RUN which pip3|xargs -i ln -s {} /usr/bin/pip
COPY . /haipproxy
WORKDIR /haipproxy
RUN pip3 install --upgrade pip && pip3 install -i https://pypi.douban.com/simple/ -r requirements.txt
#CMD ['python3', 'crawler_booter.py', '--usage', 'crawler', 'common']
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化