imageproxy icon indicating copy to clipboard operation
imageproxy copied to clipboard

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

Open gabe565 opened this issue 5 months ago • 0 comments

This PR adds -ldflags='-w -s' to the Dockerfile, which instructs the linker to strip debug information, resulting in a smaller binary size. On my machine, this shrinks the image by 17.4 MB, but each GOOS/GOARCH combo will differ slightly.

gabe565 avatar Jul 25 '25 17:07 gabe565