add docker + workflow
This commit is contained in:
parent
64215f5b70
commit
bb8a125ff1
4 changed files with 56 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue