bgpkit-broker 0.12.0

A library and command-line to provide indexing and searching functionalities for public BGP data archive files over time.
Documentation
# select build image
FROM rust:1.97 AS build

# create a new empty shell project
RUN USER=root cargo new --bin my_project
WORKDIR /my_project

# copy your source tree
COPY ./src ./src
COPY ./Cargo.toml ./Cargo.lock ./

# build for release
RUN cargo build --release --all-features

# our final base
FROM debian:trixie-slim

# copy the build artifact from the build stage
COPY --from=build /my_project/target/release/bgpkit-broker /usr/local/bin/bgpkit-broker

RUN apt update && apt install -y curl tini sqlite3
WORKDIR /bgpkit-broker

# Runtime configuration, including BGPKIT_BROKER_POSTGRES_URL and
# BGPKIT_BROKER_SQLITE_PATH, is supplied with `docker run -e` or Compose. Do not
# bake connection URLs or credentials into the image.
EXPOSE 40064
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/bgpkit-broker"]
CMD ["serve", "--bootstrap", "--silent"]