-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.erigon
More file actions
29 lines (17 loc) · 1023 Bytes
/
Dockerfile.erigon
File metadata and controls
29 lines (17 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:1.24-alpine AS builder
RUN apk add --no-cache gcc g++ musl-dev linux-headers git make
RUN git clone https://github.com/primev/erigon.git /erigon
WORKDIR /erigon
RUN git checkout check-pending
RUN make erigon
FROM alpine:latest
RUN apk add --no-cache jq curl libstdc++ libgcc
COPY --from=builder /erigon/build/bin/erigon /usr/local/bin/
COPY genesis_erigon.json /genesis.json
RUN jq '.config.blobSchedule = { "cancun": { "target": 3, "max": 6, "baseFeeUpdateFraction": 3338477 }, "prague": { "target": 6, "max": 9, "baseFeeUpdateFraction": 5007716 } }' /genesis.json > /genesis.json.tmp && mv /genesis.json.tmp /genesis.json
RUN jq '.config.terminalTotalDifficulty = 0' /genesis.json > /genesis.json.tmp && mv /genesis.json.tmp /genesis.json
RUN jq '.config.terminalTotalDifficultyPassed = true' /genesis.json > /genesis.json.tmp && mv /genesis.json.tmp /genesis.json
COPY entrypoint_erigon.sh /entrypoint_erigon.sh
RUN chmod +x /entrypoint_erigon.sh
EXPOSE 8545
ENTRYPOINT ["/entrypoint_erigon.sh"]