hoard/Dockerfile
2024-03-10 05:11:59 +01:00

29 lines
527 B
Docker

FROM rust:bookworm as builder
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM archlinux
RUN pacman-key --init && \
pacman-key --populate archlinux
# Install dependencies for yt-dlp and ffmpeg
RUN pacman -Sy --noconfirm archlinux-keyring && \
pacman -Syu --noconfirm && \
pacman -S --noconfirm \
ca-certificates \
ffmpeg \
yt-dlp \
aria2 \
python3
RUN python3 -m pip install --break-system-packages mutagen
COPY --from=builder /app/target/release/hoard /hoard
WORKDIR /
CMD ["/hoard"]