From 75e30c79617a14900fcfb472c7fcdab49cba7513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 18 Dec 2022 16:36:19 +0200 Subject: [PATCH] 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. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a720f82..493c9eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]