gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/images/basic/rust/Dockerfile (about) 1 FROM rust:1.75.0 2 # Set the working directory 3 WORKDIR /app 4 5 # Copy the application files into the image 6 COPY Cargo.toml helloworld.rs ./ 7 8 # Build the application in release mode 9 RUN cargo build --release 10 11 # Set the command to run the binary 12 CMD ["./target/release/hello-world"]