fix bin-selects

This commit is contained in:
41666 2022-12-13 00:40:39 -05:00
parent c483764b4b
commit b8fa5d9595

View file

@ -13,11 +13,12 @@ ENV RUSTFLAGS="-C link-arg=-fuse-ld=/mold"
FROM rust-base as planner
ARG SERVICE
COPY . .
RUN cargo chef prepare --recipe-path recipe.json --bin ${SERVICE}
RUN cargo chef prepare --recipe-path recipe.json --bin services/${SERVICE}
# Step 2: Cache project dependencies
FROM rust-base as cacher
ARG SERVICE
COPY . .
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json --bin ${SERVICE}