mirror of
https://github.com/timendum/Youtube-dl-WebUI.git
synced 2024-11-14 11:04:27 +08:00
31 lines
860 B
Text
31 lines
860 B
Text
|
FROM debian:wheezy
|
||
|
|
||
|
RUN apt-get update && apt-get install -y --no-install-recommends\
|
||
|
git python libav-tools apache2 php5 curl ca-certificates
|
||
|
RUN rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
#Install youtube-dl
|
||
|
RUN curl https://yt-dl.org/downloads/2015.03.09/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+x /usr/local/bin/youtube-dl
|
||
|
|
||
|
WORKDIR /
|
||
|
RUN mkdir /www
|
||
|
|
||
|
WORKDIR /www
|
||
|
RUN git clone https://github.com/p1rox/youtube-dl-webui.git youtube-dl
|
||
|
|
||
|
WORKDIR /www/youtube-dl
|
||
|
RUN rm -rf .git README.md img .gitignore docker
|
||
|
|
||
|
WORKDIR /
|
||
|
RUN chmod -R 755 /www && chown -R www-data:www-data /www
|
||
|
|
||
|
COPY ./vhost.conf /etc/apache2/conf.d/extra/vhost.conf
|
||
|
|
||
|
RUN ln -sf /dev/stdout /var/log/apache2/youtube-dl_access.log
|
||
|
RUN ln -sf /dev/stderr /var/log/apache2/youtube-dl_error.log
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
VOLUME /www/youtube-dl/downloads
|
||
|
|
||
|
CMD youtube-dl -U && /usr/sbin/apache2ctl -D FOREGROUND
|