mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
pull rust in (#1488)
This commit is contained in:
parent
ba37977cdf
commit
f504d1020e
1 changed files with 5 additions and 6 deletions
11
Dockerfile
11
Dockerfile
|
@ -85,11 +85,11 @@ RUN ln -s /usr/bin/rustup-init /usr/bin/rustup \
|
||||||
&& rustup toolchain install stable-x86_64-unknown-linux-musl \
|
&& rustup toolchain install stable-x86_64-unknown-linux-musl \
|
||||||
&& rustup component add rustfmt --toolchain=stable-x86_64-unknown-linux-musl \
|
&& rustup component add rustfmt --toolchain=stable-x86_64-unknown-linux-musl \
|
||||||
&& rustup component add clippy --toolchain=stable-x86_64-unknown-linux-musl \
|
&& rustup component add clippy --toolchain=stable-x86_64-unknown-linux-musl \
|
||||||
&& mv /root/.rustup /tmp/.rustup \
|
&& mv /root/.rustup /usr/lib/.rustup \
|
||||||
&& ln -s /tmp/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/rustfmt /usr/bin/rustfmt \
|
&& ln -s /usr/lib/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/rustfmt /usr/bin/rustfmt \
|
||||||
&& ln -s /tmp/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/rustc /usr/bin/rustc \
|
&& ln -s /usr/lib/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/rustc /usr/bin/rustc \
|
||||||
&& ln -s /tmp/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/cargo /usr/bin/cargo \
|
&& ln -s /usr/lib/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/cargo /usr/bin/cargo \
|
||||||
&& ln -s /tmp/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/cargo-clippy /usr/bin/cargo-clippy \
|
&& ln -s /usr/lib/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin/cargo-clippy /usr/bin/cargo-clippy \
|
||||||
&& echo '#!/usr/bin/env bash' > /usr/bin/clippy \
|
&& echo '#!/usr/bin/env bash' > /usr/bin/clippy \
|
||||||
&& echo 'pushd $(dirname $1)' >> /usr/bin/clippy \
|
&& echo 'pushd $(dirname $1)' >> /usr/bin/clippy \
|
||||||
&& echo 'cargo-clippy' >> /usr/bin/clippy \
|
&& echo 'cargo-clippy' >> /usr/bin/clippy \
|
||||||
|
@ -373,7 +373,6 @@ COPY --from=base_image /lib/ /lib/
|
||||||
COPY --from=base_image /bin/ /bin/
|
COPY --from=base_image /bin/ /bin/
|
||||||
COPY --from=base_image /opt/microsoft/ /opt/microsoft/
|
COPY --from=base_image /opt/microsoft/ /opt/microsoft/
|
||||||
COPY --from=base_image /node_modules/ /node_modules/
|
COPY --from=base_image /node_modules/ /node_modules/
|
||||||
COPY --from=base_image /tmp/.rustup/ /tmp/.rustup/
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Add node packages to path and dotnet #
|
# Add node packages to path and dotnet #
|
||||||
|
|
Loading…
Reference in a new issue