mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
16 lines
No EOL
333 B
Docker
16 lines
No EOL
333 B
Docker
FROM --platform=linux/amd64 golang:1.22 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/shisui/main.go
|
|
|
|
|
|
FROM --platform=linux/amd64 ubuntu:22.04
|
|
|
|
COPY --from=builder /app/main /usr/local/bin/app
|
|
|
|
EXPOSE 8545 9009/udp
|
|
|
|
ENTRYPOINT [ "app" ] |