chore(docker): strip debug information to shrink image size

This commit is contained in:
Gabe Cook 2025-07-25 12:15:36 -05:00
parent 7f3639886b
commit 9cf076e24b
No known key found for this signature in database
GPG key ID: 3197318BDE319B8D

View file

@ -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