Skip to content

Commit

Permalink
Merge pull request #638 from scop/fix/docker-debian-sync
Browse files Browse the repository at this point in the history
fix: Docker/Debian version sync
  • Loading branch information
epage committed Dec 19, 2022
2 parents 73ed739 + 7f0e8c7 commit 87d2236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
@@ -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
COPY . .
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
CMD ["typos"]

0 comments on commit 87d2236

Please sign in to comment.