ethexporter
ethexporter copied to clipboard
Static build.
Hi. Is there any way to build ethexporter into single binary. I want to reduce docker image size. Then I try build it with:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -tags netgo -ldflags '-linkmode external -w -extldflags "-static"' .
I get folling error:
# github.com/ethereum/go-ethereum/rpc
../../ethereum/go-ethereum/rpc/endpoints.go:96:19: undefined: ipcListen
../../ethereum/go-ethereum/rpc/ipc.go:50:16: undefined: newIPCConnection
You can't build go-ethereum without cgo :(