mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
5737842410
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.
8 lines
198 B
Docker
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"]
|