# Builds the daemon into a small image. Mount a configuration file at # /etc/ferrix/server.textpb, or pass another path as the first argument. FROM rust:1.92-bookworm AS build WORKDIR /src COPY . . RUN cargo build --release --locked -p bgp FROM debian:bookworm-slim COPY --from=build /src/target/release/bgp /usr/local/bin/bgp ENTRYPOINT ["/usr/local/bin/bgp"] CMD ["/etc/ferrix/server.textpb", "--level", "info"]