From 095f3f20766808e4800cf6d6b1646cb2b4e8c25e Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 8 Apr 2024 16:48:34 +0100 Subject: [PATCH] build(docker): Add Dockerfile for the builder --- Dockerfile.builder | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile.builder diff --git a/Dockerfile.builder b/Dockerfile.builder new file mode 100644 index 0000000..a4eeacf --- /dev/null +++ b/Dockerfile.builder @@ -0,0 +1,23 @@ +FROM docker.io/rust:latest + +RUN apt-get update && \ + apt-get install -y clang-15 mold && \ + 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 mold --version +RUN clang-15 --version +RUN cargo --version +RUN rustc --version +RUN rustup --version +RUN rustup show