From 9cf076e24bec58aed6eb3e5be66b365c32b23b4a Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 25 Jul 2025 12:15:36 -0500 Subject: [PATCH] chore(docker): strip debug information to shrink image size --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1898e920c..5255e11c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ COPY . . ARG TARGETOS ARG TARGETARCH -RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -v ./cmd/imageproxy +RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags='-w -s' -v ./cmd/imageproxy FROM cgr.dev/chainguard/static:latest