Skip to content

Commit 8d1fe50

Browse files
committed
bug(dockerfile): Build only the CLI dependencies with the Dockerfile #625
1 parent 5448b67 commit 8d1fe50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ WORKDIR /app
77

88
FROM chef AS planner
99
COPY . .
10-
RUN cargo chef prepare --recipe-path recipe.json
10+
RUN cargo chef prepare --recipe-path recipe.json --bin cloud-scanner-cli
1111

1212
FROM chef AS builder
1313
COPY --from=planner /app/recipe.json recipe.json
1414
# Notice that we are specifying the --target flag!
15-
RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
15+
RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json --bin cloud-scanner-cli
1616
COPY . .
1717
RUN cargo build --release --target x86_64-unknown-linux-musl --bin cloud-scanner-cli
1818

0 commit comments

Comments
 (0)