FROM rust:slim-bullseye as build RUN apt-get -y update && apt-get -y install ncurses-dev WORKDIR /app COPY . . RUN cargo build --release FROM rust:slim-bullseye WORKDIR /app COPY --from=build /app/target/release/roast /app/roast ENV TERM=xterm-256color RUN apt-get -y update && apt-get -y install ncurses-dev CMD ["/app/roast"]