Partially Revert the performance improvments
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
8927631239
commit
924256b085
1 changed files with 1 additions and 11 deletions
12
Dockerfile
12
Dockerfile
|
@ -20,11 +20,6 @@ WORKDIR /app
|
||||||
# Build with necessary params to enable statically linking openssl, glibc and sqlite3
|
# Build with necessary params to enable statically linking openssl, glibc and sqlite3
|
||||||
RUN nimble build --passL:-L/usr/lib \
|
RUN nimble build --passL:-L/usr/lib \
|
||||||
-d:ssl \
|
-d:ssl \
|
||||||
--os:any \
|
|
||||||
-d:posix \
|
|
||||||
--deepcopy:on \
|
|
||||||
-d:useMalloc \
|
|
||||||
-d:noSignalHandler \
|
|
||||||
--cc:clang \
|
--cc:clang \
|
||||||
-p:. \
|
-p:. \
|
||||||
--dynlibOverride:ssl \
|
--dynlibOverride:ssl \
|
||||||
|
@ -36,15 +31,10 @@ RUN nimble build --passL:-L/usr/lib \
|
||||||
--passL:-static \
|
--passL:-static \
|
||||||
--passL:"-flto=full" \
|
--passL:"-flto=full" \
|
||||||
--passL:"-fuse-ld=lld" \
|
--passL:"-fuse-ld=lld" \
|
||||||
--gc:arc \
|
-d:release \
|
||||||
--panics:on \
|
|
||||||
-d:danger \
|
|
||||||
--opt:speed \
|
--opt:speed \
|
||||||
--accept
|
--accept
|
||||||
|
|
||||||
RUN strip -s /app/nim_censor_bot && \
|
|
||||||
strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot
|
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
COPY --from=builder /app/nim_censor_bot /
|
COPY --from=builder /app/nim_censor_bot /
|
||||||
|
|
Loading…
Reference in a new issue