From c22dc9c8df629441970183a5730c60665b4f05db Mon Sep 17 00:00:00 2001 From: Larry Liu Date: Wed, 17 Apr 2024 15:04:43 -0700 Subject: [PATCH] make cargo build robust to network failure for git dependencies. --- rust/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/Dockerfile b/rust/Dockerfile index 481b2f489..25a8cf733 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -9,6 +9,7 @@ WORKDIR /app COPY --link . /app RUN apt-get update && apt-get install -y cmake curl clang git pkg-config libssl-dev libpq-dev lld +ENV CARGO_NET_GIT_FETCH_WITH_CLI true RUN cargo build --locked --release -p processor RUN cp target/release/processor /usr/local/bin RUN cargo build --locked --release -p indexer-metrics