hoard/Dockerfile

27 lines
453 B
Text
Raw Normal View History

2024-03-07 16:51:56 +01:00
FROM rust:bookworm as builder
2024-03-07 16:25:32 +01:00
COPY . /app
WORKDIR /app
RUN cargo build --release
2024-03-07 18:22:22 +01:00
FROM archlinux
RUN pacman-key --init && \
pacman-key --populate archlinux
2024-03-07 16:25:32 +01:00
# Install dependencies for yt-dlp and ffmpeg
2024-03-07 18:22:22 +01:00
RUN pacman -Sy --noconfirm archlinux-keyring && \
pacman -Syu --noconfirm && \
pacman -S --noconfirm \
2024-03-07 16:51:56 +01:00
ca-certificates \
ffmpeg \
2024-03-07 18:32:39 +01:00
yt-dlp \
aria2
2024-03-07 16:25:32 +01:00
COPY --from=builder /app/target/release/hoard /hoard
WORKDIR /
2024-03-07 18:22:22 +01:00
CMD ["/hoard"]