Skip to content

Commit 8bc89d1

Browse files
authored
Merge pull request #3409 from reubenmiller/dev-container-use-bin-install
dev: use cargo-bininstall to install additional rust tooling
2 parents 83b65bd + e4dfe7d commit 8bc89d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9595
&& rustup component add rls rust-analysis rust-src rustfmt clippy \
9696
&& rustup toolchain install nightly \
9797
&& rustup component add rustfmt --toolchain nightly \
98-
&& cargo install taplo-cli cargo-nextest
98+
# Use cargo-bininstall to improve multi-arch builds
99+
&& curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \
100+
&& cargo-binstall cargo-nextest --secure \
101+
&& cargo-binstall taplo-cli --secure
99102

100103
# Persist bash history
101104
USER root

0 commit comments

Comments
 (0)