Fix aarch64 build?
All checks were successful
dropshell-build / build (push) Successful in 54m35s

This commit is contained in:
j842 2025-06-10 17:56:50 +12:00
parent e366e53529
commit a01ae2ecfb

View File

@ -63,11 +63,17 @@ RUN curl -LO https://github.com/c-ares/c-ares/releases/download/v${CARES_VERSION
# Build OpenSSL statically with musl
ARG OPENSSL_VERSION=3.3.0
ARG TARGETPLATFORM
WORKDIR /tmp
RUN curl -LO https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz && \
tar xzf openssl-${OPENSSL_VERSION}.tar.gz && \
cd openssl-${OPENSSL_VERSION} && \
./Configure no-shared no-dso no-tests no-async linux-x86_64 \
if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
OPENSSL_TARGET="linux-aarch64"; \
else \
OPENSSL_TARGET="linux-x86_64"; \
fi && \
./Configure no-shared no-dso no-tests no-async $OPENSSL_TARGET \
--prefix=/usr/local \
-static -fPIC && \
make -j$(nproc) && \