mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
add youtube-dl
This commit is contained in:
parent
3c16eca159
commit
90a7dd019f
8
youtube-dl/Dockerfile
Normal file
8
youtube-dl/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM python:3-alpine
|
||||
|
||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
RUN wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl && \
|
||||
chmod a+rx /usr/local/bin/youtube-dl
|
||||
|
||||
CMD ["youtube-dl", "--help"]
|
14
youtube-dl/README.md
Normal file
14
youtube-dl/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
# Run youtube-dl in docker
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
docker run \
|
||||
-it \
|
||||
--rm \
|
||||
--name youtube-dl \
|
||||
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
|
||||
--mount type=bind,src=/data/youtube/,dst=/output/ \
|
||||
newnius/youtube-dl youtube-dl -o '/output/%(id)s.%(ext)s' 'https://www.youtube.com/watch?v=LXb3EKWsInQ'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user