From 3744ecfa281eff2c093cf00749ea892b422725f2 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 23 Dec 2024 10:37:55 +0100 Subject: [PATCH] Update Dockerfile --- docker/ubuntu_openlitespeed_mysql/Dockerfile | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/docker/ubuntu_openlitespeed_mysql/Dockerfile b/docker/ubuntu_openlitespeed_mysql/Dockerfile index 1f111d6a..cd4e5f09 100644 --- a/docker/ubuntu_openlitespeed_mysql/Dockerfile +++ b/docker/ubuntu_openlitespeed_mysql/Dockerfile @@ -125,7 +125,7 @@ RUN new_password=$(openssl rand -base64 12 | tr -d '/+' | head -c 16) \ ########## PHP-FPM ########## # 8.2 -RUN update-alternatives --set php /usr/bin/php8.2 +RUN ln -s /usr/local/lsws/$PHP_VERSION/bin/php /usr/local/bin/php RUN sed -i \ -e 's/^upload_max_filesize = .*/upload_max_filesize = 1024M/' \ -e 's/^max_input_time = .*/max_input_time = 600/' \ @@ -134,20 +134,7 @@ RUN sed -i \ -e 's/^max_execution_time = .*/max_execution_time = 600/' \ -e 's/^opcache.enable= .*/opcache.enable=1/' \ -e 's|^;sendmail_path = .*|sendmail_path = "/usr/bin/msmtp -t"|' \ - /etc/php/8.2/fpm/php.ini -RUN sed -i 's|;sendmail_path = *|sendmail_path = "/usr/bin/msmtp -t"|g' /etc/php/8.2/fpm/php.ini - - -RUN sed -i \ - -e 's/^upload_max_filesize = .*/upload_max_filesize = 1024M/' \ - -e 's/^max_input_time = .*/max_input_time = 600/' \ - -e 's/^memory_limit = .*/memory_limit = -1/' \ - -e 's/^post_max_size = .*/post_max_size = 1024M/' \ - -e 's/^max_execution_time = .*/max_execution_time = 600/' \ - -e 's/^opcache.enable= .*/opcache.enable=1/' \ - /etc/php/8.2/cli/php.ini -RUN sed -i 's|;sendmail_path = *|sendmail_path = "/usr/bin/msmtp -t"|g' /etc/php/8.2/cli/php.ini - + /usr/local/lsws/lsphp82/etc/php/$PHP_VERSION/litespeed/php.ini ########## EMAIL ########## COPY email/msmtprc /etc/msmtprc