Skip to content

Static build. #2

@jimOnAir

Description

@jimOnAir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions