FROM rust as builder COPY . /build WORKDIR /build RUN cargo install cpuburn --root /usr FROM debian COPY --from=builder /usr/bin/cpuburn /bin CMD ["cpuburn"]