Skip to content

Commit

Permalink
build: copy .cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 22, 2024
1 parent 751fda0 commit f6c3b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit f6c3b90

Please sign in to comment.