fix: use linux-generic64 for OpenSSL on arm64 with musl-gcc

This commit is contained in:
Nathan Flurry 2026-01-28 01:44:12 -08:00
parent d1cbd20b83
commit 0b608fac7b

View file

@ -53,12 +53,11 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
cd .. && \
rm -rf openssl-$SSL_VER*; \
elif [ "$TARGETARCH" = "arm64" ]; then \
export CC=musl-gcc && \
wget https://www.openssl.org/source/openssl-$SSL_VER.tar.gz && \
tar -xzf openssl-$SSL_VER.tar.gz && \
cd openssl-$SSL_VER && \
./Configure no-shared no-async --prefix=/musl --openssldir=/musl/ssl linux-aarch64 && \
make -j$(nproc) && \
CC="musl-gcc -static" ./Configure no-shared no-async --prefix=/musl --openssldir=/musl/ssl linux-generic64 && \
make -j$(nproc) CC="musl-gcc -static" && \
make install_sw && \
cd .. && \
rm -rf openssl-$SSL_VER*; \