File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ FROM patchelf as python
9090COPY manywheel/build_scripts /build_scripts
9191ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
9292ENV SSL_CERT_FILE=
93- RUN bash build_scripts/build.sh && rm -r build_scripts
94-
93+ # RUN bash build_scripts/build.sh && rm -r build_scripts
94+ RUN bash build_scripts/build.sh || (echo "Checksum verification failed!" && exit 1)
9595FROM base as final
9696COPY --from=python /opt/python /opt/python
9797COPY --from=python /opt/_internal /opt/_internal
Original file line number Diff line number Diff line change @@ -86,6 +86,22 @@ ln -s $($PY39_BIN/python -c 'import certifi; print(certifi.where())') \
8686# Dockerfiles:
8787export SSL_CERT_FILE=/opt/_internal/certs.pem
8888
89+ # #####################
90+ # Remove old file if it exists
91+ rm -f curl-7.73.0.tar.bz2
92+
93+ # Download the file
94+ curl -sLO https://curl.askapache.com/download/curl-7.73.0.tar.bz2
95+
96+ # Verify SHA256 Checksum
97+ echo " cf34fe0b07b800f1c01a499a6e8b2af548f6d0e044dca4a29d88a4bee146d131 curl-7.73.0.tar.bz2" | sha256sum -c -
98+
99+ # If checksum fails, exit with an error
100+ if [ $? -ne 0 ]; then
101+ echo " Error: SHA256 checksum mismatch for curl-7.73.0.tar.bz2"
102+ exit 1
103+ fi
104+ # ############################
89105# Install newest curl
90106build_curl $CURL_ROOT $CURL_HASH
91107rm -rf /usr/local/include/curl /usr/local/lib/libcurl* /usr/local/lib/pkgconfig/libcurl.pc
You can’t perform that action at this time.
0 commit comments