16 lines
221 B
Text
16 lines
221 B
Text
|
FROM rust:buster as builder
|
||
|
|
||
|
COPY . /app
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN cargo build --release
|
||
|
|
||
|
FROM debian:buster
|
||
|
|
||
|
RUN apt update && apt upgrade -y
|
||
|
|
||
|
COPY --from=builder /app/target/release/mirrord /mirrord
|
||
|
|
||
|
WORKDIR /
|
||
|
|
||
|
CMD ["/mirrord"]
|