hoard/Dockerfile

26 lines
441 B
Text
Raw Normal View History

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