yt-dlp: add Containerfile
This commit is contained in:
parent
377a93f4db
commit
cb29a441f5
1 changed files with 14 additions and 0 deletions
14
yt-dlp/Containerfile
Normal file
14
yt-dlp/Containerfile
Normal file
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue