1 Star 0 Fork 0

redaus / mitm_addon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
Your Name 提交于 2021-12-09 12:01 . http-还原
FROM alpine:latest
MAINTAINER xx-zhang <actanble@gmail.com>
ENV LANG en_US.UTF-8
WORKDIR /usr/src/app
ENV ADDON_PATH /mitm/addons
# 设置alpine的镜像地址为阿里云的地址 3.10->3.9
RUN wget -qO /get-pip.py https://bootstrap.pypa.io/get-pip.py && \
echo "https://mirrors.aliyun.com/alpine/v3.9/main/" > /etc/apk/repositories \
&& apk update \
&& apk add tzdata \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& apk add --no-cache bash git curl \
libxml2-dev libffi libxml2 libxslt libxslt-dev libjpeg-turbo-dev \
python3 gcc g++ python3-dev linux-headers libffi-dev openssl-dev \
&& python3 /get-pip.py \
&& cd .. \
&& rm -f /get-pip.py \
&& rm -rf /var/cache/apk/*
# TODO alibevent-dev 没有所以被删除了, NOTE 这里
# TODO 生产环境中不要把镜像放到开源的镜像,而是推荐自己映射。
RUN git clone https://github.com/mitmproxy/mitmproxy && \
cd mitmproxy && pip3 install -r requirements.txt --index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
python3 setup.py install && cd .. && rm -rf .
# TODO 安装插件依赖的包
ADD . /mitm/addons
RUN pip3 install -r /mitm/addons/requirements.txt
VOLUME /usr/src/app/
VOLUME /mitm/addons
USER root
CMD ['/usr/bin/mitmproxy \
--listen-port 6180 \
--listen-host 0.0.0.0 \
--set confdir=./docs/certs \
-k \
-s /root/addons/http_handler.py']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/actanble/mitm_addon.git
git@gitee.com:actanble/mitm_addon.git
actanble
mitm_addon
mitm_addon
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891