docker/release-plz.Dockerfile
2026-03-04 15:15:11 +01:00

21 lines
542 B
Docker

FROM rust:alpine AS builder
# Install build dependencies for Rust crates
RUN apk add --no-cache musl-dev gcc
# Install release-plz
RUN cargo install release-plz --version 0.3.156
# Final lightweight image
FROM alpine:latest
# Install runtime dependencies (git for repo access, curl for API calls)
RUN apk add --no-cache git curl libgcc
# Copy the binary from the builder stage
COPY --from=builder /usr/local/cargo/bin/release-plz /usr/local/bin/release-plz
# Verify installation
RUN release-plz --version
CMD ["release-plz", "--help"]