Skip to content

Commit

Permalink
fix: cosmovisor Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bitnet committed Oct 29, 2024
1 parent fcd61a0 commit ab3b549
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cmd/cosmovisor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit ab3b549

Please sign in to comment.