mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 16:13:47 +00:00
28 lines
618 B
Text
28 lines
618 B
Text
FROM golang:1.21-alpine AS builder
|
|
|
|
RUN apk add --no-cache gcc musl-dev linux-headers git make
|
|
|
|
COPY ../go.mod /go-ethereum/
|
|
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
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache jq
|
|
|
|
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
|
|
|
|
COPY geth-poa/genesis.json /genesis.json
|
|
|
|
COPY geth-poa/entrypoint.sh /entrypoint.sh
|
|
|
|
COPY geth-poa/signer-node1/keystore /data/keystore
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
EXPOSE 8545 6060 60601
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|