From 8bc0fd1727f66876bcf58b38b7dc84576b0bbc20 Mon Sep 17 00:00:00 2001 From: Matthew Lopez <73856503+MatthewL246@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:15:02 -0400 Subject: [PATCH] Quick fix: downgrade mitmproxy and cryptography to fix errors --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0614b7..7a161a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ARG openssl_version="1.1.1w" openssl_dir="/opt/openssl" \ # We use the mitmproxy image for the build stage to ensure that all dependencies # are at the right versions, even though mitmproxy itself is not used here. -FROM mitmproxy/mitmproxy:latest AS openssl-build +FROM mitmproxy/mitmproxy:10.2.3 AS openssl-build ARG openssl_version openssl_dir openssl_config_dir cryptography_dir # Install build dependencies @@ -34,11 +34,11 @@ ENV PATH="/root/.cargo/bin:${PATH}" ENV OPENSSL_DIR=${openssl_dir} RUN python3 -m venv venv RUN . ${cryptography_dir}/venv/bin/activate && \ - python3 -m pip install cryptography --no-binary cryptography -v + python3 -m pip install "cryptography>=41.0.0,<42.0.0" --no-binary cryptography -v # This is the main mitmproxy container that will be run. We use a new image so # the build tools are not left over in the final image. -FROM mitmproxy/mitmproxy:latest AS mitmproxy +FROM mitmproxy/mitmproxy:10.2.3 AS mitmproxy ARG openssl_dir cryptography_dir COPY --from=openssl-build ${openssl_dir} ${openssl_dir} COPY --from=openssl-build ${cryptography_dir}/venv/lib /usr/local/lib