Add back stripping and use GCC LTO
I have tested this to work fine for a few days now Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
33cb215065
commit
99868f5986
1 changed files with 4 additions and 0 deletions
|
@ -24,10 +24,14 @@ RUN nimble build --passL:-L/usr/lib \
|
|||
--passl:-lsqlite3 \
|
||||
--passl:-lcrypto \
|
||||
--passL:-static \
|
||||
--passL:"-flto" \
|
||||
-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 /
|
||||
|
|
Loading…
Reference in a new issue