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

14 lines
312 B
Docker
Raw Permalink Normal View History

2022-08-21 18:30:34 +02:00
FROM rust:alpine AS builder
WORKDIR /usr/src/app
COPY . .
2022-08-21 20:16:17 +02:00
RUN apk add --no-cache musl-dev
2022-08-21 18:30:34 +02:00
RUN cargo install --path .
FROM alpine:3
2022-08-21 20:16:17 +02:00
COPY --from=builder /usr/local/cargo/bin/ci-buildkit-plugin /usr/local/bin/buildkit-plugin
2022-08-21 18:30:34 +02:00
COPY --from=moby/buildkit /usr/bin/buildctl /usr/bin/buildctl
CMD ["buildkit-plugin"]