-
Notifications
You must be signed in to change notification settings - Fork 9
/
bootstrapper.Dockerfile
46 lines (33 loc) · 1.46 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
FROM golang:1.20.2 as builder
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/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:bullseye-slim
WORKDIR /
VOLUME ["/data"]
EXPOSE 8000/tcp
RUN apt-get update && \
apt-get install --no-install-recommends -y \
ca-certificates build-essential python python3-dev python3-pip gettext-base golang git curl && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install ruamel.yaml web3
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
RUN chmod +x /usr/local/bin/bootnode
COPY ./ /source
ENTRYPOINT [ "/source/entrypoint.sh" ]