From a4b9b55f90c400c16f3ebeeaff384b26fab1ab5d Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Sun, 13 Oct 2024 01:49:08 +0200 Subject: [PATCH] Docker: dont copy everything Signed-off-by: Frank Villaro-Dixon --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3d5e2b0..2ae41f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM docker.io/lukemathwalker/cargo-chef:latest-rust-1 AS chef WORKDIR /app FROM chef AS planner -COPY . . +COPY Cargo.* . +ADD src src RUN cargo chef prepare --recipe-path recipe.json FROM chef AS builder