From 0207cff72bc5a45fa704215c664b07a83aa79a98 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Thu, 22 Feb 2024 13:16:39 +0200 Subject: [PATCH] chore(docker): just copy the needed files --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0ed6bd7..b3409aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,9 @@ FROM chef AS builder COPY --from=planner /app/recipe.json recipe.json ENV CARGO_NET_GIT_FETCH_WITH_CLI=true RUN cargo chef cook --release --recipe-path recipe.json -COPY . . +COPY Cargo.toml . +COPY Cargo.lock . +COPY src/ src/ RUN cargo build --release --locked \ && rm -f target/release/deps/aarty*