Skip to content

Commit

Permalink
FIX CACHE
Browse files Browse the repository at this point in the history
  • Loading branch information
sstepanchuk committed Feb 21, 2025
1 parent 2594537 commit 786d516
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ WORKDIR /app

FROM chef AS planner

COPY --parents ./**/Cargo.toml .
COPY --parents ./**/Cargo.toml .
RUN cargo chef prepare --recipe-path recipe.json
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=$SCCACHE_DIR,sharing=locked \
cargo chef prepare --recipe-path recipe.json

# dependency builder
FROM chef AS builder
Expand Down

0 comments on commit 786d516

Please sign in to comment.