From f09feac0913f7d604cc3eb6487d8e87a128b4b1b Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 7 Mar 2024 16:51:56 +0100 Subject: [PATCH] debian --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index d12da88..45185ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,19 @@ -FROM rust:buster as builder +FROM rust:bookworm as builder COPY . /app WORKDIR /app RUN cargo build --release -FROM archlinux +FROM debian:bookworm # Install dependencies for yt-dlp and ffmpeg -RUN pacman -Syu --noconfirm && \ - pacman -S --noconfirm ca-certificates ffmpeg yt-dlp && \ - rm -rf /var/cache/pacman/pkg/* +RUN apt-get update && \ + apt-get install -y \ + ca-certificates \ + ffmpeg \ + yt-dlp \ + && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/target/release/hoard /hoard