From 8c80f66cb78da27465c69e277c3be44b8eedd972 Mon Sep 17 00:00:00 2001 From: Mahyar Mirrashed Date: Sun, 5 Jan 2025 19:42:19 -0600 Subject: [PATCH] build: strip debugging symbols for smaller binary --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 173f847..564392e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN go mod download COPY . . -RUN CGO_ENABLED=0 go build -o app +RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o app FROM scratch