From 327787273f21c263a7fe8fed6d53d21ea33f55c1 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 25 Mar 2023 14:20:39 -0400 Subject: [PATCH] Use cargo sparse index in docker (#614) Make docker builds much faster with the latest sparse cargo registry setting Note that we can revert this PR after the rust 1.70 is out, as i heard it will become the default --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 830add03..e817a0b8 100755 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apk add --no-cache openssl-dev musl-dev perl build-base WORKDIR /usr/src/martin ADD . . -RUN cargo build --release --features=vendored-openssl +RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release --features=vendored-openssl FROM alpine:latest