mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
7f0e8c7295
Makes it overridable from CLI, and just one place to update.
10 lines
236 B
Docker
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"]
|