mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
75e30c7961
Make `typos` the `ENTRYPOINT` rather than cmd, and output `--help` by default. Provides for better UX when running the image without arguments, and facilitates just passing args to `typos` instead of having to repeat the command name. BREAKING CHANGE: `typos` must no longer given as the first argument when running the Docker image, as it is the default `ENTRYPOINT` now.
9 lines
216 B
Docker
9 lines
216 B
Docker
FROM rust:1.65.0 as builder
|
|
WORKDIR /usr/src/typos
|
|
COPY . .
|
|
RUN cargo install --path .
|
|
|
|
FROM debian:buster-slim
|
|
COPY --from=builder /usr/local/cargo/bin/typos /usr/local/bin/typos
|
|
ENTRYPOINT ["typos"]
|
|
CMD ["--help"]
|