2024-10-18 00:46:33 +01:00
|
|
|
FROM docker.io/rust:1.82.0-bookworm
|
2024-04-07 16:20:04 +01:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
2024-08-04 20:41:38 +01:00
|
|
|
apt-get install -y libdbus-1-dev && \
|
2024-04-07 16:20:04 +01:00
|
|
|
curl -L https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
|
|
|
|
tar -xzf cargo-binstall.tgz && \
|
|
|
|
rm cargo-binstall.tgz && \
|
|
|
|
mv cargo-binstall /usr/local/bin/ && \
|
|
|
|
cargo binstall -y cargo-chef && \
|
|
|
|
rustup component add rustfmt clippy
|
|
|
|
|
|
|
|
# verify that the binaries are installed
|
|
|
|
RUN ls -l /usr/local/cargo/bin/
|
|
|
|
RUN cargo chef --version
|
|
|
|
RUN rustfmt --version
|
|
|
|
RUN cargo fmt --version
|
|
|
|
RUN cargo clippy --version
|
|
|
|
RUN cargo --version
|
|
|
|
RUN rustc --version
|
|
|
|
RUN rustup --version
|
|
|
|
RUN rustup show
|