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