1 Star 1 Fork 2

Ekber/haipproxy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
kongminhao 提交于 2018-11-11 18:24 . Update Dockerfile
FROM vaeum/alpine-python3-pip3
LABEL mantainer="ResolveWang <resolvewang@foxmail.com>"
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV ISDOCKER 1
RUN echo -e "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.7/main/\nhttps://mirrors.tuna.tsinghua.edu.cn/alpine/v3.7/community/" > /etc/apk/repositories
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 -i https://pypi.douban.com/simple/ -U pip && pip3 install -i https://pypi.douban.com/simple/ -r requirements.txt
#CMD ['python3', 'crawler_booter.py', '--usage', 'crawler', 'common']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ekber/haipproxy.git
git@gitee.com:ekber/haipproxy.git
ekber
haipproxy
haipproxy
master

搜索帮助