From abce9e62f8b8dc5828f8e3e3b1d244d969ada261 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 24 Mar 2023 13:25:28 +0100 Subject: [PATCH] Use sparse registry for crates.io to speed up builds --- Dockerfile.arm64 | 2 ++ Dockerfile.armhf | 2 ++ Dockerfile.i686 | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 index a993a65..36932b7 100644 --- a/Dockerfile.arm64 +++ b/Dockerfile.arm64 @@ -1,5 +1,7 @@ FROM docker.io/rust:bullseye +ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse + RUN apt-get update && apt-get upgrade -y RUN apt-get install -y g++-arm-linux-gnueabihf libc6-dev-armhf-cross # Uncomment if you need to add more build dependencies to the image: diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 11d86c3..e07d2ec 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -1,5 +1,7 @@ FROM docker.io/rust:bullseye +ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse + RUN apt-get update && apt-get upgrade -y RUN apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross # Uncomment if you need to add more build dependencies to the image: diff --git a/Dockerfile.i686 b/Dockerfile.i686 index 41c895b..b10d756 100644 --- a/Dockerfile.i686 +++ b/Dockerfile.i686 @@ -1,5 +1,7 @@ FROM docker.io/rust:bullseye +ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse + RUN apt-get update && apt-get upgrade -y # Uncomment if you need to add more build dependencies to the image: # RUN apt-get install -y