15 lines
363 B
Plaintext
15 lines
363 B
Plaintext
|
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"]
|