FROM rust:latest as build WORKDIR /build COPY Cargo.lock Cargo.toml ./ COPY src/ ./src/ RUN cargo build --release FROM debian:stretch-slim COPY --from=build /build/target/release/volscan /bin/ RUN apt-get update && apt-get install -y pv ENTRYPOINT ["volscan"]