Skip to content

actix_web app doesn't boot outside of RustRover. #3450

Answered by robjtede
AgentGoldPaw asked this question in Q&A
Discussion options

You must be logged in to vote

I can only guess that this is something wrong with cargo-chef or your setup with it because even if you remove everything related to Actix Web I still get the strange exit 0 with no output behavior as you describe. Sorry I can be of more help.

Using this Dockerfile, without cargo-chef, and running it prints the "booting" log as we'd expect:

FROM rust:1-bookworm AS builder
WORKDIR /app
COPY ./Cargo.toml ./Cargo.lock ./
COPY ./src ./src
RUN cargo build --release
RUN mv ./target/release/playground ./app

FROM debian:bookworm-slim AS final
WORKDIR /app
COPY --from=builder /app/app /usr/local/bin/
CMD ["/usr/local/bin/app"]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AgentGoldPaw
Comment options

Answer selected by robjtede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3449 on August 10, 2024 19:56.