dockerfile: copy vendor/ during cache layer (path-dep needs full crate)
This commit is contained in:
parent
5b418369c0
commit
b32938ef43
1 changed files with 5 additions and 1 deletions
|
|
@ -17,10 +17,14 @@ FROM rust:1.95-bookworm AS builder
|
|||
WORKDIR /build
|
||||
|
||||
# Cache the dependency graph: copy manifests first, fetch + build
|
||||
# stubs, THEN drop in real sources.
|
||||
# stubs, THEN drop in real sources. The vendored clawdforge SDK
|
||||
# needs its own manifest + source available during the cache layer
|
||||
# (path dep — Cargo resolves it at workspace load time, not at
|
||||
# crate-compile time).
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY skald-core/Cargo.toml skald-core/Cargo.toml
|
||||
COPY skald/Cargo.toml skald/Cargo.toml
|
||||
COPY vendor vendor
|
||||
COPY migrations migrations
|
||||
|
||||
RUN mkdir -p skald-core/src skald/src \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue