mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-24 05:40:05 +00:00
initial add of docker mitmproxy
This commit is contained in:
parent
bf7b76a997
commit
3bd36b58e5
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.git
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM mitmproxy/base:onbuild
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
VOLUME /certs
|
26
Dockerfile.base-onbuild
Normal file
26
Dockerfile.base-onbuild
Normal file
@ -0,0 +1,26 @@
|
||||
FROM debian:jessie
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV PYTHON /usr/bin/python2.7
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
build-essential \
|
||||
python-pip \
|
||||
python-dev \
|
||||
python-setuptools \
|
||||
libffi-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
git \
|
||||
zlib1g-dev \
|
||||
libssl-dev && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LC_ALL C.UTF-8
|
||||
|
||||
ONBUILD ADD . /opt/mitmproxy
|
||||
ONBUILD WORKDIR /opt/mitmproxy
|
||||
ONBUILD RUN [ ! -e requirements.txt ] || pip install -r requirements.txt && \
|
||||
rm -rf ~/.cache/pip /tmp/pip_build_root
|
Loading…
Reference in New Issue
Block a user