2024-10-14 23:14:20 +00:00
|
|
|
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
|
|
|
|
|
2024-10-15 02:07:00 +00:00
|
|
|
FROM debian:12
|
2024-10-15 02:30:36 +00:00
|
|
|
RUN apt-get update && apt-get install -y libssl3 ca-certificates && rm -rf /var/lib/apt/lists
|
2024-10-14 23:14:20 +00:00
|
|
|
COPY --from=build /src/target/release/matrix-meshtastic-bridge /matrix-meshtastic-bridge
|
|
|
|
CMD ["/matrix-meshtastic-bridge"]
|