mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-30 16:43:46 +00:00
16 lines
No EOL
334 B
Docker
16 lines
No EOL
334 B
Docker
FROM --platform=linux/amd64 golang:1.20.13 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
|
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build ./cmd/hive/main.go
|
|
|
|
|
|
FROM --platform=linux/amd64 ubuntu:22.04
|
|
|
|
COPY --from=builder /app/main /usr/local/bin/app
|
|
|
|
EXPOSE 8545 9009/udp
|
|
|
|
ENTRYPOINT [ "app" ] |