mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 23:52:12 -05:00
51f0b657f7
feat: Improve Docker image entry
11 lines
258 B
Docker
11 lines
258 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
|
|
ENTRYPOINT ["typos"]
|
|
CMD ["--help"]
|