typos/Dockerfile
Ville Skyttä 7f0e8c7295 chore: Make Debian dist a Docker build argument
Makes it overridable from CLI, and just one place to update.
2022-12-18 16:40:25 +02:00

10 lines
236 B
Docker

ARG DEBIAN_DIST=bullseye
FROM rust:${DEBIAN_DIST} as builder
WORKDIR /usr/src/typos
COPY . .
RUN cargo install --path .
FROM debian:${DEBIAN_DIST}-slim
COPY --from=builder /usr/local/cargo/bin/typos /usr/local/bin/typos
CMD ["typos"]