From ab3b549f76860ea09dddde550c20d6c3886c0ca8 Mon Sep 17 00:00:00 2001 From: bitnet <134201208+bitnet@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:07:45 +0800 Subject: [PATCH] fix: cosmovisor Dockerfile --- cmd/cosmovisor/Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cmd/cosmovisor/Dockerfile b/cmd/cosmovisor/Dockerfile index af17e81..b74a2e8 100644 --- a/cmd/cosmovisor/Dockerfile +++ b/cmd/cosmovisor/Dockerfile @@ -9,13 +9,11 @@ WORKDIR /root COPY . . -RUN git checkout release/v2.1.x -RUN make build -RUN mv /root/build/cvnd /root/build/cvnd-v2 - RUN git checkout release/v3.0.x RUN make build +FROM ghcr.io/cvn-network/cvn-cosmovisor:2.1.1 AS v2 + FROM debian:bullseye RUN apt-get update -y @@ -35,9 +33,7 @@ ENV DAEMON_PREUPGRADE_MAX_RETRIES=3 COPY --from=build-env /go/bin/cosmovisor /usr/bin/cosmovisor -COPY --from=build-env /root/build/cvnd-v2 /usr/bin/cvnd - -RUN cosmovisor init /usr/bin/cvnd +COPY --from=v2 /root/.cvnd /root/.cvnd COPY --from=build-env /root/build/cvnd /usr/bin/cvnd