Use external main module
* renames main package so it's importable * adds wrapmain sub-module as main module
This commit is contained in:
1 parent
1a89183720
commit
e9c8a528d4
26 files changed
+1073
-41
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ COPY go.sum /go-ethereum/
|
||||
RUN cd /go-ethereum && go mod download
|
||||
|
||||
ADD . /go-ethereum
|
||||
RUN cd /go-ethereum && go run build/ci.go install -static ./cmd/geth
|
||||
RUN cd /go-ethereum/wrapmain && go build --trimpath -o /go-ethereum/build/bin/geth .
|
||||
|
||||
# Pull Geth into a second stage deploy alpine container
|
||||
FROM alpine:latest
|
||||
|
||||
Reference in new issue
Block a user