mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 10:18:26 +00:00
* update to Python 3.14
* [autofix.ci] apply automated fixes
* fix python 3.14 compatibility
* bump minimum required zstandard version
0.15 was causing CI issues with Python 3.14.
* Revert "Bump hypothesis dependency (#7865)"
This reverts commit 0981668515.
windows-curses has no abi3 wheels, which blocks adoption of Python 3.14. Kill it with fire.
* remove compression from HAR tests
* add `build-essential` to build jobs
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
27 lines
698 B
Docker
27 lines
698 B
Docker
FROM python:3.14-trixie AS wheelbuilder
|
|
|
|
COPY mitmproxy-*-py3-none-any.whl /wheels/
|
|
RUN pip install wheel && pip wheel --wheel-dir /wheels /wheels/*.whl
|
|
|
|
FROM python:3.14-slim-trixie
|
|
|
|
RUN useradd -mU mitmproxy
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends gosu nano \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir /home/mitmproxy/.mitmproxy \
|
|
&& chown mitmproxy:mitmproxy /home/mitmproxy/.mitmproxy
|
|
|
|
COPY --from=wheelbuilder /wheels /wheels
|
|
RUN pip install --no-index --find-links=/wheels mitmproxy
|
|
RUN rm -rf /wheels
|
|
|
|
VOLUME /home/mitmproxy/.mitmproxy
|
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
|
EXPOSE 8080 8081
|
|
|
|
CMD ["mitmproxy"]
|