ethexporter icon indicating copy to clipboard operation
ethexporter copied to clipboard

Static build.

Open jimOnAir opened this issue 6 years ago • 1 comments

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

jimOnAir avatar Mar 21 '19 18:03 jimOnAir

You can't build go-ethereum without cgo :(

EldarKurbanov avatar Jun 08 '23 13:06 EldarKurbanov