# Debian-based Rust builder for library/test FROM rust:1.70-bookworm AS build WORKDIR /app COPY . . RUN cargo build --release && cargo test --release