mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Fix docker PHP
This commit is contained in:
parent
071a5f9fff
commit
ec0212e60f
1 changed files with 15 additions and 34 deletions
49
Dockerfile
49
Dockerfile
|
@ -31,38 +31,19 @@ ENV MAIN_LANGUAGE en_US
|
||||||
RUN apt update
|
RUN apt update
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt install -y --no-install-recommends \
|
RUN apt-get update -y && apt-get upgrade -y \
|
||||||
systemctl \
|
&& apt install -y --no-install-recommends ca-certificates apt-transport-https software-properties-common curl \
|
||||||
apt-transport-https \
|
&& curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
|
||||||
lsb-release \
|
&& chmod a+rx /usr/local/bin/yt-dlp \
|
||||||
logrotate \
|
&& apt install -y --no-install-recommends sshpass nano net-tools curl apache2 php8.1 libapache2-mod-php8.1 php8.1-mysql php8.1-curl php8.1-gd php8.1-intl \
|
||||||
git \
|
php-zip mysql-client ffmpeg git libimage-exiftool-perl libapache2-mod-xsendfile -y && a2enmod xsendfile && cd /var/www/html \
|
||||||
unzip \
|
&& git clone https://github.com/WWBN/AVideo.git \
|
||||||
curl \
|
&& apt install -y --no-install-recommends && curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl \
|
||||||
wget && \
|
&& chmod a+rx /usr/local/bin/youtube-dl && apt install -y --no-install-recommends build-essential libpcre3 libpcre3-dev libssl-dev php8.1-xml -y \
|
||||||
apt install -y \
|
&& a2enmod rewrite && chown www-data:www-data /var/www/html/AVideo/plugin && chmod 755 /var/www/html/AVideo/plugin \
|
||||||
ffmpeg \
|
&& apt install -y --no-install-recommends unzip -y && apt install -y --no-install-recommends htop python3-pip \
|
||||||
libimage-exiftool-perl \
|
&& pip3 install youtube-dl && pip3 install --upgrade youtube-dl && a2enmod expires \
|
||||||
libapache2-mod-xsendfile \
|
&& a2enmod headers
|
||||||
libapache2-mod-php7.4 \
|
|
||||||
build-essential \
|
|
||||||
make \
|
|
||||||
libpcre3 \
|
|
||||||
libpcre3-dev \
|
|
||||||
libssl-dev \
|
|
||||||
python3-pip \
|
|
||||||
php7.4 \
|
|
||||||
php7.4-common \
|
|
||||||
php7.4-cli \
|
|
||||||
php7.4-json \
|
|
||||||
php7.4-mbstring \
|
|
||||||
php7.4-curl \
|
|
||||||
php7.4-mysql \
|
|
||||||
php7.4-bcmath \
|
|
||||||
php7.4-xml \
|
|
||||||
php7.4-gd \
|
|
||||||
php7.4-zip \
|
|
||||||
php7.4-intl
|
|
||||||
|
|
||||||
COPY deploy/apache/avideo.conf /etc/apache2/sites-enabled/000-default.conf
|
COPY deploy/apache/avideo.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
COPY deploy/apache/phpmyadmin.conf /etc/apache2/conf-available/phpmyadmin.conf
|
COPY deploy/apache/phpmyadmin.conf /etc/apache2/conf-available/phpmyadmin.conf
|
||||||
|
@ -99,8 +80,8 @@ RUN chmod 755 /usr/local/bin/docker-entrypoint && \
|
||||||
chown -R www-data:www-data /var/www/html/AVideo && \
|
chown -R www-data:www-data /var/www/html/AVideo && \
|
||||||
cd /var/www/html/AVideo/plugin/User_Location/install && \
|
cd /var/www/html/AVideo/plugin/User_Location/install && \
|
||||||
unzip install.zip && \
|
unzip install.zip && \
|
||||||
sed -i 's/^post_max_size.*$/post_max_size = 100M/' /etc/php/7.4/apache2/php.ini && \
|
sed -i 's/^post_max_size.*$/post_max_size = 10G/' /etc/php/8.1/apache2/php.ini && \
|
||||||
sed -i 's/^upload_max_filesize.*$/upload_max_filesize = 100M/' /etc/php/7.4/apache2/php.ini && \
|
sed -i 's/^upload_max_filesize.*$/upload_max_filesize = 10G/' /etc/php/8.1/apache2/php.ini && \
|
||||||
a2enmod rewrite expires headers ssl xsendfile
|
a2enmod rewrite expires headers ssl xsendfile
|
||||||
|
|
||||||
VOLUME /var/www/tmp
|
VOLUME /var/www/tmp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue