From 7ffa1bdabfd48e73eddd1c7d86d637f4a2118381 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Mon, 25 Apr 2022 11:43:54 +0530 Subject: [PATCH] Strip the binaries further to reduce size Signed-off-by: baalajimaestro --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 527fab8..209af4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,9 @@ RUN nimble build --passL:-L/usr/lib \ --opt:speed \ --accept +RUN strip -s /app/nim_censor_bot && \ + strip -R .comment -R .note -R .note.ABI-tag /app/nim_censor_bot + # Our binary lives in this image FROM gcr.io/distroless/base:latest