FROM ekidd/rust-musl-builder:latest AS builder # Add our source code & compile COPY . . RUN cargo build --release # Now build our _real_ Docker container FROM alpine:latest COPY --from=builder \ /home/rust/src/target/x86_64-unknown-linux-musl/release/noter \ /usr/local/bin CMD ["/usr/local/bin/noter"]