Add a dockerfile for docker deployments

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-08-22 12:44:57 +05:30
parent 17942894f0
commit b47b3c7dc2
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM rust:bullseye as builder
RUN mkdir /app
COPY src /app/src
COPY Cargo.toml /app
WORKDIR /app
RUN cargo build --release
FROM gcr.io/distroless/cc:latest
COPY --from=builder /app/target/release/mail-deleter /
VOLUME /patterns.txt
CMD ["./mail-deleter"]