From 924256b0857a635ec1b820f5c2ac0ade4893849e Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 1 May 2022 02:47:42 +0530 Subject: [PATCH] Partially Revert the performance improvments Signed-off-by: baalajimaestro --- Dockerfile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index a36e6b4..bcd36b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,11 +20,6 @@ WORKDIR /app # Build with necessary params to enable statically linking openssl, glibc and sqlite3 RUN nimble build --passL:-L/usr/lib \ -d:ssl \ - --os:any \ - -d:posix \ - --deepcopy:on \ - -d:useMalloc \ - -d:noSignalHandler \ --cc:clang \ -p:. \ --dynlibOverride:ssl \ @@ -36,15 +31,10 @@ RUN nimble build --passL:-L/usr/lib \ --passL:-static \ --passL:"-flto=full" \ --passL:"-fuse-ld=lld" \ - --gc:arc \ - --panics:on \ - -d:danger \ + -d:release \ --opt:speed \ --accept -RUN strip -s /app/nim_censor_bot && \ - strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot - FROM scratch COPY --from=builder /app/nim_censor_bot /