experimental dockerfile
This commit is contained in:
parent
0eb673f0e5
commit
cea0cc93ea
|
@ -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" ]
|
Loading…
Reference in New Issue