Move post-install to RUNs
This commit is contained in:
parent
ac8f95f9d0
commit
868eacf1d5
1 changed files with 7 additions and 3 deletions
10
Dockerfile
10
Dockerfile
|
@ -51,14 +51,18 @@ WORKDIR /home/rust
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf -o rustup.sh && \
|
RUN curl https://sh.rustup.rs -sSf -o rustup.sh && \
|
||||||
sh ./rustup.sh -y && \
|
sh ./rustup.sh -y && \
|
||||||
$HOME/.cargo/bin/rustup default $RUST_VER && \
|
|
||||||
$HOME/.cargo/bin/rustup target add x86_64-pc-windows-gnu && \
|
|
||||||
$HOME/.cargo/bin/rustup target add x86_64-apple-darwin && \
|
|
||||||
rm rustup.sh
|
rm rustup.sh
|
||||||
|
|
||||||
ENV PATH $PATH:/home/rust/.cargo/bin:/usr/osxcross/bin
|
ENV PATH $PATH:/home/rust/.cargo/bin:/usr/osxcross/bin
|
||||||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/osxcross/lib
|
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/osxcross/lib
|
||||||
|
|
||||||
|
RUN rustup default $RUST_VER
|
||||||
|
RUN rustup target add x86_64-pc-windows-gnu
|
||||||
|
RUN rustup target add x86_64-apple-darwin
|
||||||
|
RUN rustup component add clippy
|
||||||
|
RUN cargo install cargo-outdated
|
||||||
|
RUN cargo install cargo-audit
|
||||||
|
|
||||||
RUN cp /usr/x86_64-w64-mingw32/lib/*crt2.o \
|
RUN cp /usr/x86_64-w64-mingw32/lib/*crt2.o \
|
||||||
/home/rust/.rustup/toolchains/1.35.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/
|
/home/rust/.rustup/toolchains/1.35.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue