hoard/Dockerfile
JMARyA ad08752c8d
All checks were successful
ci/woodpecker/push/build Pipeline was successful
update
2024-12-08 18:09:38 +01:00

30 lines
572 B
Docker

FROM rust:bookworm as builder
COPY . /app
WORKDIR /app
RUN rustup default nightly
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 \
python-mutagen
COPY --from=builder /app/target/release/hoard /hoard
COPY ./entrypoint.sh /entrypoint.sh
WORKDIR /
CMD ["/bin/bash", "/entrypoint.sh"]