From 16ef7872efbc4b7b976ae2ca7a5aa023c3a6f09d Mon Sep 17 00:00:00 2001 From: Manuel Raimo Date: Sat, 11 Nov 2023 12:36:32 +0100 Subject: [PATCH] fix: download yt-dlp directly from github Alpine linux repos are outdated --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 39d52ea..f8d37a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,10 @@ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -trimpath -ldflags FROM alpine -RUN apk add --no-cache ffmpeg yt-dlp +RUN apk add --no-cache ffmpeg python3 + +RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/bin/yt-dlp +RUN chmod a+rx /usr/bin/yt-dlp COPY --from=build /videoDownloader/videoDownloader /usr/bin/