FROM docker.io/rust:alpine AS builder WORKDIR /repository COPY . . RUN apk add --no-cache musl-dev build-base perl RUN cargo install --locked --path fishctl FROM docker.io/busybox:musl COPY README.md LICENSE-APACHE LICENSE-MIT . COPY --from=builder /usr/local/cargo/bin/fishctl /usr/local/bin/fishctl WORKDIR /firefish ENTRYPOINT ["fishctl"]