-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (26 loc) · 1.06 KB
/
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
FROM golang:1.21 as builder
RUN git clone https://github.com/protolambda/eth2-testnet-genesis.git \
&& cd eth2-testnet-genesis \
&& go install . \
&& go install github.com/protolambda/eth2-val-tools@latest \
&& go install github.com/protolambda/zcli@latest
FROM debian:latest
WORKDIR /work
VOLUME ["/config", "/data"]
EXPOSE 8000/tcp
RUN apt-get update && \
apt-get install --no-install-recommends -y \
ca-certificates build-essential python3 python3-dev python3-pip gettext-base jq wget curl && \
curl -LsSf https://astral.sh/uv/install.sh | sh && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY apps /apps
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cd /apps/el-gen && uv venv && uv pip install -r requirements.txt
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/zcli /usr/local/bin/zcli
COPY config-example /config
COPY entrypoint.sh .
ENTRYPOINT [ "/work/entrypoint.sh" ]