strip session-added comments
Some checks failed
CI / Check / Test (push) Has been cancelled
CI / Check / Test (pull_request) Has been cancelled

This commit is contained in:
2026-10-26 10:32:38 +01:00
parent a270632e87
commit f020108024
138 changed files with 0 additions and 719 deletions

View File

@@ -16,7 +16,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN cargo install cargo-chef --locked --version 0.1.78
WORKDIR /build
# ----- planner: dependency recipe (changes only when manifests/lockfile change) -----
FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
@@ -27,14 +26,10 @@ FROM chef AS builder
# Features: federation (ActivityPub), nats (EVENT_BUS_BACKEND=nats).
# Build without federation: --build-arg FEATURES=
# To add NATS support: --build-arg FEATURES=federation,nats
# Declared before cook so cook and build compile identical feature sets.
ARG FEATURES=federation
# .cargo carries the registry config needed to fetch private crates
COPY .cargo ./.cargo
COPY --from=planner /build/recipe.json recipe.json
# target/ is a normal layer (no cache mount) so the cooked deps live in the image
# layer cache; only the registry/git download caches are mounted.
RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked \
--mount=type=cache,target=/usr/local/cargo/git,sharing=locked \
cargo chef cook --release -p server -p worker --no-default-features --features "${FEATURES}" --recipe-path recipe.json