docker run --rm -it -v %cd%:/work -w /work -p 8080:8080 alpine:3
apk add go --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
GOEXPERIMENT=jsonv2 go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest
export PATH=$PATH:$(go env GOPATH)/bin
gsa --web otelcol-custom
Created
May 29, 2026 22:16
-
-
Save litetex/1a2553896651304f2cb8df2c3e6c1798 to your computer and use it in GitHub Desktop.
Analyze Go Binary in Docker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment