From cb29a441f544401e171f2149bbcc191330f9295f Mon Sep 17 00:00:00 2001 From: Astra Date: Sun, 21 Jan 2024 19:31:51 +0100 Subject: [PATCH] yt-dlp: add Containerfile --- yt-dlp/Containerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 yt-dlp/Containerfile diff --git a/yt-dlp/Containerfile b/yt-dlp/Containerfile new file mode 100644 index 0000000..430f51e --- /dev/null +++ b/yt-dlp/Containerfile @@ -0,0 +1,14 @@ +FROM python:alpine +RUN apk add --update --no-cache --virtual .build-deps gcc musl-dev \ + && pip install --upgrade pip \ + && pip install pycrypto yt-dlp \ + && rm -rf ~/.cache/pip \ + && apk del .build-deps \ + && apk add --no-cache ffmpeg \ + && chmod o+w /media + +RUN echo "-o /media/%(title)s.%(ext)s" > /etc/yt-dlp.conf + +WORKDIR /media + +ENTRYPOINT ["yt-dlp"]