fix bin-selects
This commit is contained in:
parent
c483764b4b
commit
b8fa5d9595
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue