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
|
# Build OpenSSL statically with musl
|
||||||
ARG OPENSSL_VERSION=3.3.0
|
ARG OPENSSL_VERSION=3.3.0
|
||||||
|
ARG TARGETPLATFORM
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN curl -LO https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz && \
|
RUN curl -LO https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz && \
|
||||||
tar xzf openssl-${OPENSSL_VERSION}.tar.gz && \
|
tar xzf openssl-${OPENSSL_VERSION}.tar.gz && \
|
||||||
cd openssl-${OPENSSL_VERSION} && \
|
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 \
|
--prefix=/usr/local \
|
||||||
-static -fPIC && \
|
-static -fPIC && \
|
||||||
make -j$(nproc) && \
|
make -j$(nproc) && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user