hoard/Dockerfile
2024-03-10 05:09:26 +01:00

28 lines
503 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
RUN pip3 install --break-system-packages mutagen
COPY --from=builder /app/target/release/hoard /hoard
WORKDIR /
CMD ["/hoard"]