From 4cc06dbca10fbbd971e52f1c9faa42e697a592bb Mon Sep 17 00:00:00 2001 From: Alex Page Date: Fri, 3 Mar 2023 01:03:59 -0500 Subject: [PATCH] Fix dockerfile --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38a6057..8e5f475 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,13 @@ FROM rust:1 as builder -RUN apt-get update && apt-get install -y libopus-dev +RUN apt-get update && apt-get --no-install-recommends install -y libopus-dev WORKDIR /usr/src/myapp COPY . . RUN cargo install --path . FROM debian:bullseye-slim -RUN apt-get update && apt-get install -y ffmpeg youtube-dl -COPY --from=builder /usr/local/cargo/bin/dj-kitty-cat /usr/local/bin/dj-kitty-cat -CMD ["dj-kitty-cat"] +RUN apt-get update && apt-get --no-install-recommends install -y ffmpeg +# Install yt-dlp from github releases for bugfix +ADD https://github.com/ytdl-patched/yt-dlp/releases/download/2023.03.03.19419/yt-dlp_linux /usr/local/bin/yt-dlp +RUN chmod a+rx /usr/local/bin/yt-dlp +COPY --from=builder /usr/local/cargo/bin/dj_kitty_cat /usr/local/bin/dj_kitty_cat +CMD ["dj_kitty_cat"]