Spaces:
Runtime error
Runtime error
| FROM rust:1.83.0 AS builder | |
| WORKDIR /app | |
| COPY . . | |
| RUN cargo install --path . | |
| CMD ["hello-world"] | |
| FROM debian:bookworm-slim | |
| RUN apt-get update & apt-get install -y extra-runtime-dependencies & rm -rf /var/lib/apt/lists/* | |
| COPY --from=builder /usr/local/cargo/bin/hello-world /usr/local/bin/hello-world | |
| COPY --from=builder /usr/local/cargo/bin/help /usr/local/bin/help | |
| CMD ["hello-world", "-m", "Here is a message"] | |