Fix downloads by allowing curl to follow redirects

This commit is contained in:
Matthew Lopez
2024-07-26 10:32:33 -04:00
committed by GitHub
parent b7b6e19879
commit f2e7042ac3

View File

@@ -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)