add docker + workflow

This commit is contained in:
JMARyA 2024-03-07 16:25:32 +01:00
parent 64215f5b70
commit bb8a125ff1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 56 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM rust:buster as builder
COPY . /app
WORKDIR /app
RUN cargo build --release
FROM archlinux
# Install dependencies for yt-dlp and ffmpeg
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm ca-certificates ffmpeg yt-dlp && \
rm -rf /var/cache/pacman/pkg/*
COPY --from=builder /app/target/release/hoard /hoard
WORKDIR /
CMD ["/hoard"]