Use sparse registry for crates.io to speed up builds
This commit is contained in:
parent
1dc8e5dea5
commit
abce9e62f8
|
@ -1,5 +1,7 @@
|
||||||
FROM docker.io/rust:bullseye
|
FROM docker.io/rust:bullseye
|
||||||
|
|
||||||
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
RUN apt-get install -y g++-arm-linux-gnueabihf libc6-dev-armhf-cross
|
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:
|
# Uncomment if you need to add more build dependencies to the image:
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
FROM docker.io/rust:bullseye
|
FROM docker.io/rust:bullseye
|
||||||
|
|
||||||
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
RUN apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross
|
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:
|
# Uncomment if you need to add more build dependencies to the image:
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
FROM docker.io/rust:bullseye
|
FROM docker.io/rust:bullseye
|
||||||
|
|
||||||
|
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
# Uncomment if you need to add more build dependencies to the image:
|
# Uncomment if you need to add more build dependencies to the image:
|
||||||
# RUN apt-get install -y <build-depend..>
|
# RUN apt-get install -y <build-depend..>
|
||||||
|
|
Loading…
Reference in New Issue