This repository has been archived on 2023-02-04. You can view files and clone it, but cannot push or open issues or pull requests.
ci-buildkit-plugin/Dockerfile

13 lines
312 B
Docker

FROM rust:alpine AS builder
WORKDIR /usr/src/app
COPY . .
RUN apk add --no-cache musl-dev
RUN cargo install --path .
FROM alpine:3
COPY --from=builder /usr/local/cargo/bin/ci-buildkit-plugin /usr/local/bin/buildkit-plugin
COPY --from=moby/buildkit /usr/bin/buildctl /usr/bin/buildctl
CMD ["buildkit-plugin"]