Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15166968
Dockerfile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
Dockerfile
View Options
# Based on the work of @hannah98, thanks for that!
# https://github.com/hannah98/youphptube-docker
# Licensed under the terms of the CC-0 license, see
# https://creativecommons.org/publicdomain/zero/1.0/deed
FROM php:7-apache
MAINTAINER TheAssassin <theassassin@assassinate-you.net>
RUN apt-get update && \
apt-get install -y wget git zip default-libmysqlclient-dev libbz2-dev libmemcached-dev libsasl2-dev libfreetype6-dev libicu-dev libjpeg-dev libmemcachedutil2 libpng-dev libxml2-dev mariadb-client ffmpeg libimage-exiftool-perl python curl python-pip libzip-dev && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include --with-jpeg-dir=/usr/include && \
docker-php-ext-install -j$(nproc) bcmath bz2 calendar exif gd gettext iconv intl mbstring mysqli opcache pdo_mysql zip && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /root/.cache && \
a2enmod rewrite
# patch to use non-root port
RUN sed -i "s|Listen 80|Listen 8000|g" /etc/apache2/ports.conf && \
sed -i "s|:80|:8000|g" /etc/apache2/sites-available/* && \
echo "post_max_size = 10240M\nupload_max_filesize = 10240M" >> /usr/local/etc/php/php.ini
RUN pip install -U youtube-dl
RUN rm -rf /var/www/html/*
COPY . /var/www/html
# fix permissions
RUN chown -R www-data. /var/www/html
# create volume
RUN install -d -m 0755 -o www-data -g www-data /var/www/html/videos
# set non-root user
USER www-data
VOLUME ["/var/www/html/videos"]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 23:14 (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262720
Default Alt Text
Dockerfile (1 KB)
Attached To
Mode
R58 TurboFlop
Attached
Detach File
Event Timeline