1
0
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:
kev 2015-07-05 13:53:58 +08:00
parent 1af9900827
commit 0a13b0cd92
2 changed files with 35 additions and 0 deletions

19
youtube-dl/Dockerfile Normal file
View 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
View 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/