experimental dockerfile

This commit is contained in:
blek 2023-09-29 20:56:35 +10:00
parent 0eb673f0e5
commit cea0cc93ea
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 13 additions and 0 deletions

View File

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