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