add docker image

This commit is contained in:
DataHearth 2022-02-08 15:34:15 +01:00
parent be97bc798b
commit 8a83b259f1
2 changed files with 24 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
target

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM rust:1.58 as builder
WORKDIR /app
COPY . .
RUN cargo install --path .
FROM debian:buster-slim
LABEL maintainer="Antoine <DataHearth> Langlois"
LABEL repository="https://github.com/DataHearth/clear-docker-images"
LABEL org.opencontainers.image.source=&quot;https://github.com/DataHearth/clear-docker-images&quot;
RUN apt-get update && \
# 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"]
ENTRYPOINT ["clear-docker-images"]