Merge pull request #638 from scop/fix/docker-debian-sync

fix: Docker/Debian version sync
This commit is contained in:
Ed Page 2022-12-19 08:04:23 -06:00 committed by GitHub
commit 87d223682b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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