From 768cdfe32bef9a19794e8687ad4df237797f5841 Mon Sep 17 00:00:00 2001 From: vohoanglong0107 Date: Tue, 21 May 2024 00:28:53 +0000 Subject: [PATCH] build: with a fixed rust toolchain --- Dockerfile | 1 + rust-toolchain.toml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 rust-toolchain.toml diff --git a/Dockerfile b/Dockerfile index e733f17..fe78fb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json +COPY rust-toolchain.toml . COPY Cargo.toml . COPY Cargo.lock . COPY src src diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..b7d8321 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "1.76.0" +components = [ "rustfmt", "clippy", "rust-analyzer" ] +profile = "default"