dockerfile: copy vendor/ during cache layer (path-dep needs full crate)

This commit is contained in:
Kayos 2026-05-13 10:30:58 -07:00
parent 5b418369c0
commit b32938ef43

View file

@ -17,10 +17,14 @@ FROM rust:1.95-bookworm AS builder
WORKDIR /build WORKDIR /build
# Cache the dependency graph: copy manifests first, fetch + 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 Cargo.toml Cargo.lock ./
COPY skald-core/Cargo.toml skald-core/Cargo.toml COPY skald-core/Cargo.toml skald-core/Cargo.toml
COPY skald/Cargo.toml skald/Cargo.toml COPY skald/Cargo.toml skald/Cargo.toml
COPY vendor vendor
COPY migrations migrations COPY migrations migrations
RUN mkdir -p skald-core/src skald/src \ RUN mkdir -p skald-core/src skald/src \