From 50f55b7429787814a8123e87a73618e19097ae17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kriv=C3=A1cs=20Schr=C3=B8der?= Date: Sat, 25 Mar 2023 13:06:53 +0100 Subject: [PATCH] ci: use sparse cargo registry protocol --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ba68de..e7f39e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,9 @@ WORKDIR /usr/src/qcext-server # Run SQLX in offline mode ENV SQLX_OFFLINE=true +# Use spare registry protocol +ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse + # Build the dependencies in a separate step to avoid rebuilding all of them # every time the source code changes. This takes advantage of Docker's layer # caching, and it works by doing a build using the Cargo.{toml,lock} files with