23 lines
483 B
Docker
23 lines
483 B
Docker
FROM rust:1.91-alpine as builder
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
WORKDIR /bot
|
|
COPY . .
|
|
|
|
RUN cargo build --release --target x86_64-unknown-linux-musl
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
libgcc \
|
|
libstdc++
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /dbot/target/x86_64-unknown-linux-musl/release/dbot /usr/local/bin/dbot
|
|
|
|
|
|
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux /usr/local/bin/dbot
|
|
|
|
CMD ["dbot"]
|