Speed up build by using sparse Cargo index for crates.io

This commit is contained in:
Paul van Tilburg 2023-03-22 15:26:45 +01:00
parent beb49373fb
commit 9200a10cef
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
FROM docker.io/rust:1 as builder
# Build the dependencies first
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN USER=root cargo new --bin /usr/src/solar-grabber
WORKDIR /usr/src/solar-grabber
COPY ./Cargo.* ./