mail-deleter/Dockerfile
baalajimaestro b47b3c7dc2
Add a dockerfile for docker deployments
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
2022-08-22 12:44:57 +05:30

15 lines
No EOL
259 B
Docker

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"]