diff --git a/Dockerfile b/Dockerfile index b0e627d..27c5654 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 /