-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (20 loc) · 991 Bytes
/
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
FROM golang:1.22.5-bookworm AS base-build
RUN go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
RUN go install github.com/hashicorp/go-getter/cmd/[email protected]
RUN go install github.com/zeta-chain/dl-pipe/cmd/dl-pipe@latest
FROM debian:bookworm AS base
ENV PATH=/root/.zetacored/cosmovisor/current/bin/:${PATH}
RUN apt update && \
apt install -y ca-certificates curl jq lz4 && \
rm -rf /var/lib/apt/lists/*
COPY --from=base-build /go/bin/cosmovisor /go/bin/go-getter /go/bin/dl-pipe /usr/local/bin
COPY run.sh init.sh /
ENTRYPOINT ["/run.sh"]
FROM base AS snapshotter
ARG TARGETARCH
RUN apt update && \
apt install -y rclone procps lz4 && \
rm -rf /var/lib/apt/lists/*
RUN ARCH=$( [ "$TARGETARCH" = "amd64" ] && echo "x86_64" || echo "$TARGETARCH" ) && \
curl -L https://github.com/zeta-chain/cosmprund/releases/download/v0.2.0-zeta/cosmprund_Linux_${ARCH}.tar.gz | tar xz -C /usr/local/bin/ cosmprund &&\
chmod +x /usr/local/bin/cosmprund