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
|
|
|
|
|
2024-12-08 17:09:38 +00:00
|
|
|
RUN rustup default nightly
|
2024-03-07 15:25:32 +00:00
|
|
|
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:32:39 +00:00
|
|
|
yt-dlp \
|
2024-03-10 04:10:44 +00:00
|
|
|
aria2 \
|
2024-03-10 04:15:11 +00:00
|
|
|
python3 \
|
|
|
|
python-mutagen
|
2024-03-10 04:09:26 +00:00
|
|
|
|
2024-03-07 15:25:32 +00:00
|
|
|
COPY --from=builder /app/target/release/hoard /hoard
|
2024-03-14 11:27:44 +00:00
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
2024-03-07 15:25:32 +00:00
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
2024-03-14 11:27:44 +00:00
|
|
|
CMD ["/bin/bash", "/entrypoint.sh"]
|