From 13e1931345e8eca2b465b4ab9c17e5bddcb45adf Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Fri, 21 Apr 2023 10:47:17 +0530 Subject: [PATCH] Update nimble in the builder Signed-off-by: baalajimaestro --- Dockerfile | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e4cc62..04ac667 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,23 +13,25 @@ RUN apk update && apk add git \ COPY . /app WORKDIR /app +RUN nimble install nimble --accept + # Build with necessary params to enable statically linking openssl, glibc and sqlite3 -RUN nimble build --passL:-L/usr/lib \ - -d:ssl \ - -p:. \ - --dynlibOverride:ssl \ - --dynlibOverride:crypto \ - --dynlibOverride:sqlite3 \ - --passl:-lssl \ - --passl:-lsqlite3 \ - --passl:-lcrypto \ - --passL:-static \ - --passL:"-flto" \ - -d:release \ - --opt:speed \ - --mm:orc \ - --deepcopy=on \ - --accept +RUN /root/.nimble/bin/nimble build --passL:-L/usr/lib \ + -d:ssl \ + -p:. \ + --dynlibOverride:ssl \ + --dynlibOverride:crypto \ + --dynlibOverride:sqlite3 \ + --passl:-lssl \ + --passl:-lsqlite3 \ + --passl:-lcrypto \ + --passL:-static \ + --passL:"-flto" \ + -d:release \ + --opt:speed \ + --mm:orc \ + --deepcopy=on \ + --accept RUN strip -s /app/nim_censor_bot && \ strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot