Use libressl instead of openssl
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
5eab571e37
commit
12aa976a20
1 changed files with 23 additions and 8 deletions
31
Dockerfile
31
Dockerfile
|
@ -1,16 +1,28 @@
|
||||||
FROM alpine:edge as builder
|
FROM alpine:edge as builder
|
||||||
|
|
||||||
RUN apk update && apk add git \
|
RUN apk update && apk add autoconf \
|
||||||
build-base \
|
automake \
|
||||||
curl \
|
|
||||||
bash \
|
bash \
|
||||||
openssl \
|
build-base \
|
||||||
openssl-dev \
|
cmake \
|
||||||
openssl-libs-static \
|
curl \
|
||||||
|
git \
|
||||||
|
libtool \
|
||||||
|
ninja \
|
||||||
|
perl \
|
||||||
sqlite-dev \
|
sqlite-dev \
|
||||||
sqlite-static
|
sqlite-static
|
||||||
|
|
||||||
ENV NIM_VERSION v1.6.12
|
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} && \
|
RUN git clone https://github.com/nim-lang/Nim.git --depth=1 -b ${NIM_VERSION} && \
|
||||||
cd Nim && \
|
cd Nim && \
|
||||||
|
@ -34,11 +46,14 @@ RUN /root/.nimble/bin/nimble build --passL:-L/usr/lib \
|
||||||
--dynlibOverride:ssl \
|
--dynlibOverride:ssl \
|
||||||
--dynlibOverride:crypto \
|
--dynlibOverride:crypto \
|
||||||
--dynlibOverride:sqlite3 \
|
--dynlibOverride:sqlite3 \
|
||||||
|
--dynlibOverride:tls \
|
||||||
--passl:-lssl \
|
--passl:-lssl \
|
||||||
--passl:-lsqlite3 \
|
--passl:-lsqlite3 \
|
||||||
--passl:-lcrypto \
|
--passl:-lcrypto \
|
||||||
--passL:-static \
|
--passl:-ltls \
|
||||||
--passL:"-flto" \
|
--passL:-L/libressl/build-ninja/ssl \
|
||||||
|
--passL:-L/libressl/build-ninja/crypto \
|
||||||
|
--passL:-L/libressl/build-ninja/tls \
|
||||||
-d:release \
|
-d:release \
|
||||||
--opt:speed \
|
--opt:speed \
|
||||||
--mm:orc \
|
--mm:orc \
|
||||||
|
|
Loading…
Reference in a new issue