mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
Merge pull request #638 from scop/fix/docker-debian-sync
fix: Docker/Debian version sync
This commit is contained in:
commit
87d223682b
1 changed files with 4 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue