forked from hyeonsangjeon/youtube-dl-nas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 845 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
35
36
# youtube-dl-nas Server Dockerfile
# https://github.com/hyeonsangjeon/youtube-dl-nas.git
# update container python 3.8
FROM python:3.8
LABEL maintainer="wingnut0310 <[email protected]>"
RUN apt-get update -y
RUN apt-get install -y v4l-utils
# Install ffmpeg.
RUN apt-get install ffmpeg -y
#RUN apt-get install -y libav-tools
RUN apt-get install -y vim dos2unix && \
rm -rf /var/lib/apt/lists/*
COPY /subber /usr/bin/subber
COPY /run.sh /
COPY / /usr/src/app/
RUN chmod +x /usr/bin/subber && \
dos2unix /usr/bin/subber && \
ln -s /usr/src/app/downfolder / && \
chmod +x /run.sh && \
dos2unix /run.sh
WORKDIR /usr/src/app/
RUN pip install -r requirements.txt
RUN pip install -U youtube-dl
EXPOSE 8080
VOLUME ["/downfolder"]
CMD [ "/bin/bash", "/run.sh" ]
#CMD [ "python", "-u", "./youtube-dl-server.py" ]