This commit is contained in:
parent
e366e53529
commit
a01ae2ecfb
@ -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) && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user