typos/Dockerfile
Ville Skyttä 5737842410 chore: Use rust:bullseye as Docker builder
Use `bullseye` explicitly to make the correspondence with the final
image clear, and remove explicit Rust version as it does not seem that
important, and the final runtime image version is what it is at the time
too.
2022-12-18 16:40:25 +02:00

8 lines
198 B
Docker

FROM rust:bullseye as builder
WORKDIR /usr/src/typos
COPY . .
RUN cargo install --path .
FROM debian:bullseye-slim
COPY --from=builder /usr/local/cargo/bin/typos /usr/local/bin/typos
CMD ["typos"]