Spaces:
Runtime error
Runtime error
File size: 415 Bytes
5142f69 b060fff 5142f69 957ad8f 5142f69 99fef95 5142f69 c32ca09 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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"]
|