typos/Dockerfile
Ed Page 51f0b657f7
Merge pull request #639 from scop/feat/docker-entrypoint
feat: Improve Docker image entry
2022-12-19 08:06:08 -06:00

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