FROM rust:1.70 as builder WORKDIR /usr/src/app COPY . . RUN cargo build --release FROM debian:bullseye-slim RUN apt-get update && apt-get install -y libssl1.1 ca-certificates && rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/src/app/target/release/spawn-cli /usr/local/bin/ COPY --from=builder /usr/src/app/templates /usr/local/templates/ ENTRYPOINT ["spawn-cli"]