hoard/Dockerfile

22 lines
363 B
Text
Raw Normal View History

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
RUN cargo build --release
2024-03-07 15:51:56 +00:00
FROM debian:bookworm
2024-03-07 15:25:32 +00:00
# Install dependencies for yt-dlp and ffmpeg
2024-03-07 15:51:56 +00:00
RUN apt-get update && \
apt-get install -y \
ca-certificates \
ffmpeg \
yt-dlp \
&& rm -rf /var/lib/apt/lists/*
2024-03-07 15:25:32 +00:00
COPY --from=builder /app/target/release/hoard /hoard
WORKDIR /
CMD ["/hoard"]