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