Use libressl instead of openssl

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-05-31 11:01:12 +05:30
parent 5eab571e37
commit 12aa976a20
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -1,16 +1,28 @@
FROM alpine:edge as builder
RUN apk update && apk add git \
build-base \
curl \
RUN apk update && apk add autoconf \
automake \
bash \
openssl \
openssl-dev \
openssl-libs-static \
build-base \
cmake \
curl \
git \
libtool \
ninja \
perl \
sqlite-dev \
sqlite-static
ENV NIM_VERSION v1.6.12
ENV LIBRESSL_VERSION v3.8.0
RUN git clone https://github.com/libressl/portable --depth=1 -b ${LIBRESSL_VERSION} libressl && \
cd libressl && \
./autogen.sh && \
mkdir build-ninja && \
cd build-ninja && \
cmake -G"Ninja" .. && \
ninja
RUN git clone https://github.com/nim-lang/Nim.git --depth=1 -b ${NIM_VERSION} && \
cd Nim && \
@ -34,11 +46,14 @@ RUN /root/.nimble/bin/nimble build --passL:-L/usr/lib \
--dynlibOverride:ssl \
--dynlibOverride:crypto \
--dynlibOverride:sqlite3 \
--dynlibOverride:tls \
--passl:-lssl \
--passl:-lsqlite3 \
--passl:-lcrypto \
--passL:-static \
--passL:"-flto" \
--passl:-ltls \
--passL:-L/libressl/build-ninja/ssl \
--passL:-L/libressl/build-ninja/crypto \
--passL:-L/libressl/build-ninja/tls \
-d:release \
--opt:speed \
--mm:orc \