Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions youtube-dl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read that yt-dlp required Node or Bun etc now going forward to solve captchas.

Thoughts?

Did you want to also update the alpine version.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see in the Alpine repository, the yt-dlp package depends on the yt-dlp-ejs package, which pulls in a JavaScript runtime. There is also a related issue discussing this. At the moment, it seems a JS runtime is not actually downloaded, but I think that in the future the Alpine maintainer will enable it through the yt-dlp-ejs package.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you want to also update the alpine version.

I didnit update it, as you may prefer to do it manually together with the other functions in a single commit.


# Add non root user
RUN mkdir -p /home/app
Expand Down