typos/Dockerfile
Ville Skyttä 75e30c7961 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.
2022-12-18 16:37:03 +02:00

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"]