forked from 0xTylerHolmes/ethereum-testnet-bootstrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrapper.Dockerfile
55 lines (40 loc) · 1.82 KB
/
bootstrapper.Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM golang:bookworm as builder
COPY ./ /source
WORKDIR /git
RUN git clone https://github.com/protolambda/eth2-testnet-genesis.git \
&& cd eth2-testnet-genesis \
&& go install . \
&& go install github.com/wealdtech/ethereal/v2@latest \
# && go install github.com/0xTylerHolmes/ethdo@fuzz \
&& go install github.com/wealdtech/[email protected] \
&& go install github.com/protolambda/eth2-bootnode@latest
RUN git clone https://github.com/protolambda/eth2-val-tools.git \
&& cd eth2-val-tools && go install ./...
RUN git clone https://github.com/ethereum/go-ethereum.git \
&& cd go-ethereum && git checkout master \
&& make geth && make all
FROM debian:stable-slim
VOLUME ["/data"]
WORKDIR /
EXPOSE 8000/tcp
RUN apt-get update && \
apt-get install --no-install-recommends -y \
ca-certificates build-essential python3-dev python3-pip gettext-base golang git curl jq
RUN apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --break-system-packages ruamel.yaml web3 pydantic
COPY --from=builder /go/bin/eth2-testnet-genesis /usr/local/bin/eth2-testnet-genesis
COPY --from=builder /go/bin/eth2-val-tools /usr/local/bin/eth2-val-tools
COPY --from=builder /go/bin/eth2-bootnode /usr/local/bin/eth2-bootnode
COPY --from=builder /go/bin/ethereal /usr/local/bin/ethereal
COPY --from=builder /git/go-ethereum/build/bin/bootnode /usr/local/bin/bootnode
COPY --from=builder /go/bin/ethdo /usr/local/bin/ethdo
COPY --from=builder /source/src /source/src
COPY --from=builder /source/configs /source/configs
COPY --from=builder /source/entrypoint.sh /source/entrypoint.sh
COPY --from=builder /source/deps/launchers /source/deps/launchers
COPY --from=builder /source/deps/misc /source/deps/misc
RUN chmod +x /usr/local/bin/bootnode
WORKDIR /source
ENTRYPOINT [ "./entrypoint.sh" ]