stack-orchestrator/app/data/container-build/cerc-fixturenet-eth-geth/Dockerfile

22 lines
736 B
Docker
Raw Permalink Normal View History

2023-08-03 20:31:16 +00:00
FROM cerc/fixturenet-eth-genesis:local as fnetgen
FROM cerc/go-ethereum:local as geth
# Using the same golang image as used to build geth: https://github.com/cerc-io/go-ethereum/blob/HEAD/Dockerfile
2023-08-03 20:31:16 +00:00
FROM golang:1.20-alpine as delve
RUN go install github.com/go-delve/delve/cmd/dlv@latest
2023-05-19 16:26:09 +00:00
FROM alpine:3.17
2023-08-03 20:31:16 +00:00
RUN apk add --no-cache bash wget python3 bind-tools postgresql-client
COPY run-el.sh /opt/testnet/run.sh
2023-08-03 20:31:16 +00:00
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
2023-08-03 20:31:16 +00:00
# Initialize the geth db with our config
RUN geth --datadir ~/ethdata init /opt/testnet/build/el/geth.json && rm -f ~/ethdata/geth/nodekey
ENTRYPOINT ["/opt/testnet/run.sh"]