mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-26 01:22:08 -05:00
chore: Make Debian dist a Docker build argument
Makes it overridable from CLI, and just one place to update.
This commit is contained in:
parent
5737842410
commit
7f0e8c7295
1 changed files with 4 additions and 2 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue