From 056c5dc2dde193a7bd00d5675f8f1b1213e57a8a Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 21 Dec 2023 11:56:12 -0800 Subject: [PATCH] Add `-trimpath` to builds for cleaner embedded paths --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 38a8a0e..8a51c3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN set -eux; \ patch --strip=1 --directory=/usr/local/go --input=/tmp/go-mips.patch # note: we cannot add "-s" here because then "govulncheck" does not work (see SECURITY.md); the ~0.2MiB increase (as of 2022-12-16, Go 1.18) is worth it -ENV BUILD_FLAGS="-v -ldflags '-d -w'" +ENV BUILD_FLAGS="-v -trimpath -ldflags '-d -w'" RUN set -eux; \ { \