From f6c3b9039008c4a9ecd2c752ffe1df48a34523cf Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Fri, 22 Nov 2024 19:19:32 +0700 Subject: [PATCH] build: copy .cargo --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09817e583b1..047592a2e47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -332,7 +332,7 @@ SHELL ["/bin/bash", "-o", "pipefail","-e", "-x", "-c"] WORKDIR /platform -COPY --from=build-planner /platform/recipe.json /platform/.cargo /platform/ +COPY --from=build-planner --parents /platform/recipe.json /platform/.cargo /platform/ # Build dependencies - this is the caching Docker layer! RUN --mount=type=cache,sharing=shared,id=cargo_registry_index,target=${CARGO_HOME}/registry/index \ @@ -424,7 +424,7 @@ FROM deps AS build-js WORKDIR /platform -COPY --from=build-planner /platform/recipe.json recipe.json +COPY --from=build-planner --parents /platform/recipe.json recipe.json # Build dependencies - this is the caching Docker layer! RUN --mount=type=cache,sharing=shared,id=cargo_registry_index,target=${CARGO_HOME}/registry/index \