diff --git a/Dockerfile b/Dockerfile index 7db315d..47fe91a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -FROM rust:bullseye as builder +ARG DEBIAN_DIST=bullseye + +FROM rust:${DEBIAN_DIST} as builder WORKDIR /usr/src/typos COPY . . RUN cargo install --path . -FROM debian:bullseye-slim +FROM debian:${DEBIAN_DIST}-slim COPY --from=builder /usr/local/cargo/bin/typos /usr/local/bin/typos CMD ["typos"]