github.com/anchore/syft@v1.38.2/syft/pkg/cataloger/rust/test-fixtures/image-audit/Dockerfile (about)

     1  FROM rust:1.82.0 AS builder
     2  
     3  WORKDIR /app
     4  
     5  RUN cargo install cargo-auditable --version 0.6.4 --locked
     6  COPY Cargo.toml Cargo.lock ./
     7  COPY src ./src
     8  RUN cargo fetch
     9  RUN cargo auditable build --release
    10  
    11  FROM scratch
    12  
    13  COPY --from=builder /app/target/release/hello_world /usr/local/bin/hello_world
    14