diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e32109 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM rust:alpine as builder +RUN apk add --no-cache musl-dev +WORKDIR /usr/src/svr +COPY . . +RUN cargo build --release + +FROM alpine:edge +RUN apk add --no-cache yt-dlp +COPY --from=builder /usr/src/svr/target/release/svr /usr/local/bin/svr + +CMD ["/usr/local/bin/svr"]