Files
Jing Chen a5f0778c38 Add a hello world docker image test for rust runtime.
PiperOrigin-RevId: 603161919
2024-01-31 14:38:10 -08:00

12 lines
276 B
Docker

FROM rust:1.75.0
# Set the working directory
WORKDIR /app
# Copy the application files into the image
COPY Cargo.toml helloworld.rs ./
# Build the application in release mode
RUN cargo build --release
# Set the command to run the binary
CMD ["./target/release/hello-world"]