Use sparse registry for crates.io to speed up builds

This commit is contained in:
Paul van Tilburg 2023-03-24 13:25:28 +01:00
parent 1dc8e5dea5
commit abce9e62f8
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
3 changed files with 6 additions and 0 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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 <build-depend..>