[feat] add docker file

This commit is contained in:
Jay 2020-11-11 23:29:00 +08:00
parent 80cad2886c
commit a5473f6436
2 changed files with 9 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
/target

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM rust:1 as builder
COPY . .
RUN cargo install --path .
FROM debian:buster-slim
RUN apt-get update && apt-get install -y libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/registry-cleaner /usr/bin/registry-cleaner