1 2 3 4 5 6 7 8 9 10
# Builder image to compile systemg for Linux FROM rust:1.75 AS builder WORKDIR /app COPY . . RUN cargo build --release # Extract the binary FROM scratch AS binary COPY --from=builder /app/target/release/sysg /sysg