mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
add youtube-dl
This commit is contained in:
parent
1af9900827
commit
0a13b0cd92
19
youtube-dl/Dockerfile
Normal file
19
youtube-dl/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# Dockerfile for youtube-dl
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apk add -U ca-certificates \
|
||||
ffmpeg \
|
||||
python \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
&& wget -O- https://bootstrap.pypa.io/get-pip.py | python \
|
||||
&& pip install youtube-dl \
|
||||
&& mkdir -p /data
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
ENTRYPOINT ["youtube-dl"]
|
||||
CMD ["--help"]
|
16
youtube-dl/README.md
Normal file
16
youtube-dl/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
youtube-dl
|
||||
==========
|
||||
|
||||
[`youtube-dl`][1] is a small command-line program to download videos from YouTube.com and a few more sites.
|
||||
|
||||
## Tutorial
|
||||
|
||||
```
|
||||
# create a alias
|
||||
$ alias yt='docker run --rm -v `pwd`:/data vimagick/youtube-dl'
|
||||
|
||||
# download a video
|
||||
$ yt nVjsGKrE6E8
|
||||
```
|
||||
|
||||
[1]: https://rg3.github.io/youtube-dl/
|
Loading…
Reference in New Issue
Block a user