newdoc 2.10.1

Generate pre-populated module files formatted with AsciiDoc that are used in Red Hat and Fedora documentation.
# See https://hub.docker.com/_/rust/

## This configuration results in a large image with Rust tooling
# FROM rust:1.44
# 
# WORKDIR /usr/src/newdoc
# COPY . .
# 
# RUN cargo install --path .
# 
# # CMD ["newdoc"]
# ENTRYPOINT ["newdoc"]

## This configuration results in a small image based on Debian Bullseye without Rust tooling
FROM rust:1.58 as builder
WORKDIR /usr/src/newdoc
COPY . .
RUN cargo install --path .

FROM debian:bullseye-slim
# RUN apt-get update && apt-get install -y extra-runtime-dependencies
COPY --from=builder /usr/local/cargo/bin/newdoc /usr/local/bin/newdoc
ENTRYPOINT ["newdoc"]