Youtube-dl-WebUI/docker/Dockerfile
2015-04-24 10:09:10 +02:00

31 lines
861 B
Docker

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