From 034a7f825b5710382a015c8300d028cb20b8da47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20W=C3=B3jcik?= Date: Mon, 26 Jan 2026 12:49:37 +0100 Subject: [PATCH] fix cargo chef setup --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93af0d3ece..a288fe9cec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,14 +19,15 @@ FROM chef AS planner # prepare recipe COPY Cargo.toml Cargo.lock ./ COPY crates crates +COPY tools tools COPY proto proto COPY migrations migrations -RUN cargo chef prepare --recipe-path recipe.json +RUN cargo chef prepare --bin defguard --recipe-path recipe.json FROM chef AS builder # build deps from recipe & cache as docker layer COPY --from=planner /build/recipe.json recipe.json -RUN cargo chef cook --release --recipe-path recipe.json +RUN cargo chef cook --bin defguard --release --recipe-path recipe.json # build project COPY --from=web /app/dist ./web/dist