mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
feat: Improve Docker image entry
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.
This commit is contained in:
parent
73ed739ad5
commit
75e30c7961
1 changed files with 2 additions and 1 deletions
|
@ -5,4 +5,5 @@ RUN cargo install --path .
|
|||
|
||||
FROM debian:buster-slim
|
||||
COPY --from=builder /usr/local/cargo/bin/typos /usr/local/bin/typos
|
||||
CMD ["typos"]
|
||||
ENTRYPOINT ["typos"]
|
||||
CMD ["--help"]
|
||||
|
|
Loading…
Reference in a new issue