This commit is contained in:
JMARyA 2024-03-07 16:51:56 +01:00
parent 26de012358
commit f09feac091
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -1,16 +1,19 @@
FROM rust:buster as builder FROM rust:bookworm as builder
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
RUN cargo build --release RUN cargo build --release
FROM archlinux FROM debian:bookworm
# Install dependencies for yt-dlp and ffmpeg # Install dependencies for yt-dlp and ffmpeg
RUN pacman -Syu --noconfirm && \ RUN apt-get update && \
pacman -S --noconfirm ca-certificates ffmpeg yt-dlp && \ apt-get install -y \
rm -rf /var/cache/pacman/pkg/* ca-certificates \
ffmpeg \
yt-dlp \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/hoard /hoard COPY --from=builder /app/target/release/hoard /hoard