mirror of
https://github.com/timendum/Youtube-dl-WebUI.git
synced 2024-09-20 06:46:10 +08:00
Add Dockerfile
Small changes
This commit is contained in:
parent
8c81a4cc91
commit
c97685a7d6
31
docker/Dockerfile
Normal file
31
docker/Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
|||
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
|
9
docker/README.md
Normal file
9
docker/README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Dockerize Youtube-dl-WebUI
|
||||
|
||||
Build your own image :
|
||||
|
||||
`docker build -t ytdlwui .`
|
||||
|
||||
Run it :
|
||||
|
||||
`docker run -d -p 8080:80 -v /path/to/video/folder:/www/youtube-dl/downloads ytdlwui `
|
11
docker/vhost.conf
Normal file
11
docker/vhost.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
<VirtualHost *:80>
|
||||
DocumentRoot /www/youtube-dl
|
||||
<Directory /www/youtube-dl>
|
||||
# enable the .htaccess rewrites
|
||||
AllowOverride All
|
||||
Order allow,deny
|
||||
Allow from All
|
||||
</Directory>
|
||||
ErrorLog /var/log/apache2/youtube-dl_error.log
|
||||
CustomLog /var/log/apache2/youtube-dl_access.log combined
|
||||
</VirtualHost>
|
|
@ -38,8 +38,6 @@
|
|||
}
|
||||
?>
|
||||
<div class="container">
|
||||
<br>
|
||||
<br>
|
||||
<h1>Download</h1>
|
||||
<?php
|
||||
|
||||
|
|
4
list.php
4
list.php
|
@ -35,8 +35,6 @@
|
|||
require 'views/header.php';
|
||||
?>
|
||||
<div class="container">
|
||||
<br>
|
||||
<br>
|
||||
<?php
|
||||
if(!empty($files))
|
||||
{
|
||||
|
@ -67,6 +65,8 @@
|
|||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/>
|
||||
<br/>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar navbar-default navbar-fixed-top">
|
||||
<div class="navbar navbar-default">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
|
|
Loading…
Reference in a new issue