7 lines
546 B
Docker
7 lines
546 B
Docker
FROM mitmproxy/mitmproxy:latest
|
|
RUN pip install --no-cache-dir httpie 2>/dev/null; apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* || true
|
|
EXPOSE 8888 8081
|
|
HEALTHCHECK --interval=10s --timeout=5s --retries=10 --start-period=15s \
|
|
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8081')" || exit 1
|
|
ENTRYPOINT ["mitmweb", "--web-host", "0.0.0.0", "--web-port", "8081", "-p", "8888", "--ssl-insecure", "--set", "web_open_browser=false", "--set", "web_password=mitm"]
|