This commit is contained in:
Patryk Koreń
2025-12-23 19:38:20 +01:00
commit 7b72b15caa
12 changed files with 3846 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
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"]