image: source doesn't work for sh
@@ -13,10 +13,9 @@ RUN ninja -C _build
RUN ninja -C _build install
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
-RUN source $HOME/.cargo/env
-RUN rustup install stable --allow-downgrade -c clippy -c rustfmt
-RUN rustup install beta --allow-downgrade -c clippy -c rustfmt
-RUN rustup install nightly --allow-downgrade -c clippy -c rustfmt
-RUN rustup install 1.56.0 --allow-downgrade -c clippy -c rustfmt
+RUN $HOME/.cargo/bin/rustup install stable --allow-downgrade -c clippy -c rustfmt
+RUN $HOME/.cargo/bin/rustup install beta --allow-downgrade -c clippy -c rustfmt
+RUN $HOME/.cargo/bin/rustup install nightly --allow-downgrade -c clippy -c rustfmt
+RUN $HOME/.cargo/bin/rustup install 1.56.0 --allow-downgrade -c clippy -c rustfmt
-RUN rustup default stable
+RUN $HOME/.cargo/bin/rustup default stable
