Skip to content

Commit f35250b

Browse files
committed
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 <inbox@emanuelepetriglia.com>
1 parent 71dcfd7 commit f35250b

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

youtube-dl/Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.21.3 as ship
55
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66
RUN chmod +x /usr/bin/fwatchdog
77

8-
RUN apk add --no-cache curl bash ca-certificates
9-
10-
# youtube-dl appears to be broken
11-
# https://github.com/ytdl-org/youtube-dl/issues/31530
12-
# Switching to yt-dlp
13-
# RUN pip install --upgrade yt-dlp
14-
15-
RUN curl -SLs https://get.arkade.dev | sh && \
16-
arkade get yt-dlp && \
17-
mv $HOME/.arkade/bin/yt-dlp /usr/local/bin/ && \
18-
chmod +x /usr/local/bin/yt-dlp && \
19-
rm -rf /tmp/* && rm -rf /usr/local/bin/arkade
8+
# Download yt-dlp, an updated alternative to youtube-dl, from Alpine repository
9+
# since it is packaged as static binary compatible with Alpine.
10+
RUN apk add --no-cache ca-certificates yt-dlp
2011

2112
# Add non root user
2213
RUN mkdir -p /home/app

0 commit comments

Comments
 (0)