Skip to content

Commit

Permalink
Merge pull request #3 from PretendoNetwork/update-mitmproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow authored Aug 4, 2024
2 parents 04828c4 + 3816636 commit 52f9fa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ ARG openssl_version openssl_dir openssl_config_dir cryptography_dir
RUN apt update && \
apt install -y \
curl build-essential libffi-dev pkg-config
RUN curl https://sh.rustup.rs | sh -s -- -y
RUN curl -L https://sh.rustup.rs | sh -s -- -y

# Download and compile OpenSSL
RUN curl https://www.openssl.org/source/openssl-${openssl_version}.tar.gz | tar -xvz -C /tmp
RUN curl -L https://www.openssl.org/source/openssl-${openssl_version}.tar.gz | tar -xvz -C /tmp
WORKDIR /tmp/openssl-${openssl_version}
RUN ./config --prefix=${openssl_dir} --openssldir=${openssl_config_dir} -Wl,-Bsymbolic-functions -fPIC shared
RUN make -j $(nproc)
Expand All @@ -32,6 +32,7 @@ RUN make install_sw
WORKDIR ${cryptography_dir}
ENV PATH="/root/.cargo/bin:${PATH}"
ENV OPENSSL_DIR=${openssl_dir}
ENV OPENSSL_STATIC=1
RUN python3 -m venv venv
RUN . ${cryptography_dir}/venv/bin/activate && \
python3 -m pip install cryptography --no-binary cryptography -v
Expand Down

0 comments on commit 52f9fa4

Please sign in to comment.