Partially Revert the performance improvments

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-05-01 02:47:42 +05:30
parent 8927631239
commit 924256b085
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -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 /