We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5448b67 commit 8d1fe50Copy full SHA for 8d1fe50
Dockerfile
@@ -7,12 +7,12 @@ WORKDIR /app
7
8
FROM chef AS planner
9
COPY . .
10
-RUN cargo chef prepare --recipe-path recipe.json
+RUN cargo chef prepare --recipe-path recipe.json --bin cloud-scanner-cli
11
12
FROM chef AS builder
13
COPY --from=planner /app/recipe.json recipe.json
14
# Notice that we are specifying the --target flag!
15
-RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
+RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json --bin cloud-scanner-cli
16
17
RUN cargo build --release --target x86_64-unknown-linux-musl --bin cloud-scanner-cli
18
0 commit comments