FROM library/rust:1.81 AS build # not clear what this is used for RUN apt-get update && apt-get install -y libdbus-1-dev pkg-config COPY . /src WORKDIR /src RUN cargo build --release FROM scratch COPY --from=build /src/target/release/matrix-meshtastic-bridge /matrix-meshtastic-bridge CMD ["/matrix-meshtastic-bridge"]