2024-05-31 18:07:20 +00:00
|
|
|
FROM cerc/fixturenet-eth-genesis-postmerge:local as fnetgen
|
2024-10-30 06:50:42 +00:00
|
|
|
FROM ethereum/client-go:v1.14.8 as geth
|
2024-04-25 12:23:30 +00:00
|
|
|
|
|
|
|
# Using the same golang image as used to build geth: https://github.com/cerc-io/go-ethereum/blob/HEAD/Dockerfile
|
2024-05-01 22:26:22 +00:00
|
|
|
FROM golang:1.21-alpine as delve
|
2024-04-25 12:23:30 +00:00
|
|
|
RUN go install github.com/go-delve/delve/cmd/dlv@latest
|
|
|
|
|
|
|
|
FROM alpine:3.17
|
|
|
|
|
|
|
|
RUN apk add --no-cache bash wget python3 bind-tools postgresql-client
|
|
|
|
|
|
|
|
COPY run-el.sh /opt/testnet/run.sh
|
|
|
|
|
|
|
|
COPY --from=delve /go/bin/dlv /usr/local/bin/
|
|
|
|
COPY --from=geth /usr/local/bin/geth /usr/local/bin/
|
|
|
|
COPY --from=fnetgen /opt/genesis /opt/testnet
|
|
|
|
|
|
|
|
# Initialize the geth db with our config
|
2024-07-10 01:27:58 +00:00
|
|
|
RUN geth --datadir ~/ethdata --state.scheme hash \
|
|
|
|
init /opt/testnet/build/el/geth.json && \
|
|
|
|
rm -f ~/ethdata/geth/nodekey
|
2024-04-25 12:23:30 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/opt/testnet/run.sh"]
|