################## Stage 1 #################### FROM rust:latest as builder COPY ./ ./ RUN cargo build --release RUN mkdir -p /build-out RUN cp target/release/jaz /build-out/ ################## Stage 2 #################### FROM alpine:latest COPY --from=builder /build-out/jaz / CMD ["/jaz"]