use dind-alpine image
This commit is contained in:
parent
8d253da429
commit
f976a1b855
12
Dockerfile
12
Dockerfile
|
@ -3,20 +3,16 @@ FROM rust:1.58 as builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo install --path .
|
RUN rustup target add x86_64-unknown-linux-musl
|
||||||
|
RUN cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
FROM debian:buster-slim
|
FROM docker:20.10.12-dind-alpine3.15
|
||||||
|
|
||||||
LABEL maintainer="Antoine <DataHearth> Langlois"
|
LABEL maintainer="Antoine <DataHearth> Langlois"
|
||||||
LABEL repository="https://github.com/DataHearth/clear-docker-images"
|
LABEL repository="https://github.com/DataHearth/clear-docker-images"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/DataHearth/clear-docker-images"
|
LABEL org.opencontainers.image.source="https://github.com/DataHearth/clear-docker-images"
|
||||||
|
|
||||||
RUN apt-get update && \
|
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/clear-docker-images /usr/local/bin/clear-docker-images
|
||||||
# apt-get -qy full-upgrade && \
|
|
||||||
apt-get install -qy curl && \
|
|
||||||
curl -sSL https://get.docker.com/ | sh
|
|
||||||
|
|
||||||
COPY --from=builder /usr/local/cargo/bin/clear-docker-images /usr/local/bin/clear-docker-images
|
|
||||||
|
|
||||||
VOLUME ["/var/run/docker.sock"]
|
VOLUME ["/var/run/docker.sock"]
|
||||||
|
|
||||||
|
|
Reference in New Issue