Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dockerfiles/model-agent.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ COPY pkg/ pkg/

# Build the XET library first.
# Cache the cargo registry and git checkouts across builds so crates and the
# huggingface/xet-core git deps aren't re-downloaded on every rebuild — faster
# and resilient to transient network failures (e.g. curl [18] partial file).
RUN --mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/root/.cargo/git \
# huggingface/xet-core git deps aren't re-downloaded on every rebuild. Lock the
# caches because the amd64 and arm64 build stages run concurrently.
RUN --mount=type=cache,target=/root/.cargo/registry,sharing=locked \
--mount=type=cache,target=/root/.cargo/git,sharing=locked \
cd pkg/xet && make build

# Verify static library exists and remove dynamic library to force static linking
Expand Down
Loading