This commit is contained in:
@ -75,11 +75,19 @@ RUN curl -LO https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz &&
|
||||
fi && \
|
||||
./Configure no-shared no-dso no-tests no-async $OPENSSL_TARGET \
|
||||
--prefix=/usr/local \
|
||||
--openssldir=/usr/local/ssl \
|
||||
-static -fPIC && \
|
||||
make -j$(nproc) && \
|
||||
make install_sw && \
|
||||
cd / && rm -rf /tmp/openssl-${OPENSSL_VERSION} /tmp/openssl-${OPENSSL_VERSION}.tar.gz
|
||||
|
||||
# Set environment variables to help CMake and other tools find OpenSSL
|
||||
ENV OPENSSL_ROOT_DIR=/usr/local \
|
||||
OPENSSL_INCLUDE_DIR=/usr/local/include \
|
||||
OPENSSL_CRYPTO_LIBRARY=/usr/local/lib/libcrypto.a \
|
||||
OPENSSL_SSL_LIBRARY=/usr/local/lib/libssl.a \
|
||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
|
||||
# Build jsoncpp statically with musl - use stable version known to work with Drogon
|
||||
ARG JSONCPP_VERSION=1.9.5
|
||||
WORKDIR /tmp
|
||||
|
Reference in New Issue
Block a user