Revert: Move to libressl
Libressl does bring 1mb improvement, but its causing issues Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
7ffa1bdabf
commit
16e6d2f724
1 changed files with 2 additions and 10 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,24 +1,16 @@
|
|||
FROM nimlang/nim:alpine as builder
|
||||
|
||||
RUN apk update && apk add git build-base clang perl autoconf automake libtool llvm llvm-dev lld curl bash openssl sqlite-dev sqlite-static
|
||||
|
||||
RUN git clone https://github.com/libressl-portable/portable && \
|
||||
cd portable && \
|
||||
./autogen.sh &> /dev/null && \
|
||||
./configure --with-openssldir=/usr/local/libressl --disable-shared &> /dev/null && \
|
||||
make -j$(nproc) &> /dev/null && \
|
||||
make install &> /dev/null
|
||||
RUN apk update && apk add git build-base clang llvm llvm-dev lld curl bash openssl openssl-dev openssl-libs-static sqlite-dev sqlite-static
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
# Build with necessary params to enable statically linking openssl, glibc and sqlite3
|
||||
RUN nimble build --passL:-L/usr/lib \
|
||||
--passL:-L/usr/local/lib \
|
||||
-d:ssl \
|
||||
--os:any \
|
||||
-d:posix \
|
||||
-d:libressl \
|
||||
--deepcopy:on \
|
||||
-d:useMalloc \
|
||||
-d:noSignalHandler \
|
||||
--cc:clang \
|
||||
|
|
Loading…
Reference in a new issue