FROM rust:1.95.0-alpine3.22 AS builder WORKDIR /app COPY . . RUN cargo build --release # Small runtime image FROM alpine:3.22 WORKDIR /app COPY --from=builder /app/target/release/rhythm-backend /app/executable ENTRYPOINT ["/app/executable"]