forked from manbearwiz/youtube-dl-server
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
34 lines (24 loc) · 915 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# youtube-dl Server Dockerfile
#
# https://github.com/ycrack/youtube-dl-server
#
FROM python:slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y libav-tools tzdata wget bzip2 --no-install-recommends && \
apt-get clean && \
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
RUN chmod a+x ./youtube-dl-server.py
RUN wget 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2' && \
tar jxf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
rm phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
ln -s -r /usr/src/app/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
EXPOSE 8080
VOLUME ["/youtube-dl"]
CMD [ "python", "-u", "./youtube-dl-server.py" ]