From ce77046d865307be6ea9a3811a42c02d1ec08edc Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Sun, 6 Feb 2022 19:36:28 -0500 Subject: [PATCH] cargo bin is named bot, not app --- packages/bot/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bot/Dockerfile b/packages/bot/Dockerfile index 603e409..3e94476 100644 --- a/packages/bot/Dockerfile +++ b/packages/bot/Dockerfile @@ -13,10 +13,10 @@ COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json # Build application COPY . . -RUN cargo build --release --bin app +RUN cargo build --release --bin bot # We do not need the Rust toolchain to run the binary! FROM gcr.io/distroless/base AS runtime WORKDIR /app -COPY --from=builder /app/target/release/app /usr/local/bin -ENTRYPOINT ["/usr/local/bin/app"] \ No newline at end of file +COPY --from=builder /app/target/release/bot /usr/local/bin +ENTRYPOINT ["/usr/local/bin/bot"] \ No newline at end of file