This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-08 15:34:15 +01:00
|
|
|
FROM rust:1.58 as builder
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
|
2022-02-17 22:19:13 +01:00
|
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
RUN cargo build --release --target x86_64-unknown-linux-musl
|
2022-02-08 15:34:15 +01:00
|
|
|
|
2022-02-17 22:19:13 +01:00
|
|
|
FROM docker:20.10.12-dind-alpine3.15
|
2022-02-08 15:34:15 +01:00
|
|
|
|
|
|
|
LABEL maintainer="Antoine <DataHearth> Langlois"
|
|
|
|
LABEL repository="https://github.com/DataHearth/clear-docker-images"
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/DataHearth/clear-docker-images"
|
|
|
|
|
2022-02-17 22:19:13 +01:00
|
|
|
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/clear-docker-images /usr/local/bin/clear-docker-images
|
2022-02-08 15:34:15 +01:00
|
|
|
|
|
|
|
VOLUME ["/var/run/docker.sock"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["clear-docker-images"]
|