Skip to content

Commit 1ab8461

Browse files
image: update PATH env variable
otherwise cargo can't be found
1 parent 7c0f494 commit 1ab8461

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ RUN ninja -C _build
1313
RUN ninja -C _build install
1414

1515
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
16-
RUN $HOME/.cargo/bin/rustup toolchain install stable --profile minimal --allow-downgrade -c clippy -c rustfmt
17-
RUN $HOME/.cargo/bin/rustup toolchain install beta --profile minimal --allow-downgrade -c clippy -c rustfmt
18-
RUN $HOME/.cargo/bin/rustup toolchain install nightly --profile minimal --allow-downgrade -c clippy -c rustfmt
19-
RUN $HOME/.cargo/bin/rustup toolchain install 1.56.0 --profile minimal --allow-downgrade -c clippy -c rustfmt
16+
ENV PATH="$HOME/.cargo/bin/:${PATH}"
17+
RUN rustup toolchain install stable --profile minimal --allow-downgrade -c clippy -c rustfmt
18+
RUN rustup toolchain install beta --profile minimal --allow-downgrade -c clippy -c rustfmt
19+
RUN rustup toolchain install nightly --profile minimal --allow-downgrade -c clippy -c rustfmt
20+
RUN rustup toolchain install 1.56.0 --profile minimal --allow-downgrade -c clippy -c rustfmt
2021

21-
RUN $HOME/.cargo/bin/rustup default stable
22+
RUN rustup default stable

0 commit comments

Comments
 (0)