jobs-hello-world / Dockerfile
anthony's picture
anthony HF staff
revert
957ad8f unverified
raw
history blame contribute delete
415 Bytes
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"]