2024-05-31 18:07:20 +00:00
|
|
|
FROM ethpandaops/ethereum-genesis-generator:3.0.0 AS ethgen
|
2024-04-25 12:23:30 +00:00
|
|
|
|
|
|
|
# Build genesis config
|
2024-07-10 01:28:09 +00:00
|
|
|
ADD genesis /opt/genesis
|
2024-08-05 19:15:58 +00:00
|
|
|
WORKDIR /opt/genesis
|
|
|
|
RUN make genesis-el
|
|
|
|
RUN jq ".config" build/el/geth.json > build/el/chain.json
|
2024-04-25 12:23:30 +00:00
|
|
|
|
2024-07-10 01:28:09 +00:00
|
|
|
FROM golang:1.21-alpine as builder
|
|
|
|
|
|
|
|
COPY --from=ethgen /opt/genesis /opt/genesis
|
|
|
|
|
2024-04-25 12:23:30 +00:00
|
|
|
# Snag the genesis block info.
|
2024-07-10 01:28:09 +00:00
|
|
|
RUN CGO_ENABLED=0 go install github.com/cerc-io/eth-dump-genblock@v0.2.0
|
2024-04-25 12:23:30 +00:00
|
|
|
RUN eth-dump-genblock /opt/genesis/build/el/geth.json > /opt/genesis/build/el/genesis_block.json
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
COPY --from=builder /opt/genesis /opt/genesis
|