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
This commit is contained in:
Yuri Astrakhan 2023-03-25 14:20:39 -04:00 committed by GitHub
parent 8f30a76195
commit 327787273f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ RUN apk add --no-cache openssl-dev musl-dev perl build-base
WORKDIR /usr/src/martin WORKDIR /usr/src/martin
ADD . . ADD . .
RUN cargo build --release --features=vendored-openssl RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release --features=vendored-openssl
FROM alpine:latest FROM alpine:latest