strip session-added comments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user