https://github.com/ttys3/git-cz conventional commits tool with fuzzy matcher support, with extra changelog, versioning, validation feature.
FROM rust:alpine as builder
RUN apk add clang musl-dev

COPY . /tmp
WORKDIR /tmp

RUN cargo --version
RUN cargo build --release

FROM alpine as base
COPY --from=builder /tmp/target/release/git-cz /usr/bin/git-cz

ENTRYPOINT [ "git-cz" ]
CMD [ "check" ]