hoard/Dockerfile
2024-03-07 16:25:32 +01:00

19 lines
No EOL
352 B
Docker

FROM rust:buster as builder
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM archlinux
# 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/*
COPY --from=builder /app/target/release/hoard /hoard
WORKDIR /
CMD ["/hoard"]