Add a dockerfile for docker deployments
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
17942894f0
commit
b47b3c7dc2
1 changed files with 15 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue