From f35250b6f24f69d74a20e1bb5e5fc8f3a25d78b8 Mon Sep 17 00:00:00 2001 From: Emanuele Petriglia Date: Tue, 23 Dec 2025 13:56:52 +0000 Subject: [PATCH] Use yt-dlp from Alpine instead of Arkade This is required because the yt-dlp package from Alpine's repository is provided as a static binary, specifically designed to run on Alpine containers. Signed-off-by: Emanuele Petriglia --- youtube-dl/Dockerfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/youtube-dl/Dockerfile b/youtube-dl/Dockerfile index 879acb0..8a54012 100644 --- a/youtube-dl/Dockerfile +++ b/youtube-dl/Dockerfile @@ -5,18 +5,9 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.21.3 as ship COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog RUN chmod +x /usr/bin/fwatchdog -RUN apk add --no-cache curl bash ca-certificates - -# youtube-dl appears to be broken -# https://github.com/ytdl-org/youtube-dl/issues/31530 -# Switching to yt-dlp -# RUN pip install --upgrade yt-dlp - -RUN curl -SLs https://get.arkade.dev | sh && \ - arkade get yt-dlp && \ - mv $HOME/.arkade/bin/yt-dlp /usr/local/bin/ && \ - chmod +x /usr/local/bin/yt-dlp && \ - rm -rf /tmp/* && rm -rf /usr/local/bin/arkade +# Download yt-dlp, an updated alternative to youtube-dl, from Alpine repository +# since it is packaged as static binary compatible with Alpine. +RUN apk add --no-cache ca-certificates yt-dlp # Add non root user RUN mkdir -p /home/app