From cea0cc93eaf0bb48c174ade811061418b2413b10 Mon Sep 17 00:00:00 2001 From: blek Date: Fri, 29 Sep 2023 20:56:35 +1000 Subject: [PATCH] experimental dockerfile --- filed/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/filed/Dockerfile b/filed/Dockerfile index e69de29..ad56973 100644 --- a/filed/Dockerfile +++ b/filed/Dockerfile @@ -0,0 +1,13 @@ +# --- build --- +FROM rust:alpine as builder + +WORKDIR /opt/build +COPY . . + +RUN cargo b -r + +# --- deploy --- +FROM alpine + +COPY --from=builder /opt/build/target/release/filed /bin/filed +CMD [ "/bin/filed" ] \ No newline at end of file