|
@@ -1,5 +1,5 @@
|
|
|
# Set this argument during build time to indicate that the path is for php's www.conf
|
|
|
-ARG WWW_CONFIG="/etc/php7/php-fpm.d/www.conf"
|
|
|
+ARG WWW_CONFIG="/etc/php8/php-fpm.d/www.conf"
|
|
|
|
|
|
# Configure 'opensearch.xml' with Librex configuration metadata, such as the encoding and the host that stores the site
|
|
|
# These configurations will replace the 'opensearch.xml' inside '.dockers/templates' for the best setup for your instance
|
|
@@ -52,8 +52,8 @@ ENV CURLOPT_VERBOSE=true
|
|
|
|
|
|
# Install PHP-FPM using Alpine's package manager, apk
|
|
|
# Configure PHP-FPM to listen on a Unix socket instead of a TCP port, which is more secure and efficient
|
|
|
-RUN apk add php7 php7-fpm php7-dom php7-curl php7-json --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing &&\
|
|
|
- sed -i 's/^\s*listen = 127.0.0.1:9000/listen = \/run\/php7\/php-fpm7.sock/' ${WWW_CONFIG} &&\
|
|
|
+RUN apk add php8 php8-fpm php8-dom php8-curl php8-json --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing &&\
|
|
|
+ sed -i 's/^\s*listen = 127.0.0.1:9000/listen = \/run\/php8\/php-fpm8.sock/' ${WWW_CONFIG} &&\
|
|
|
sed -i 's/^\s*;\s*listen.owner = nobody/listen.owner = nginx/' ${WWW_CONFIG} &&\
|
|
|
sed -i 's/^\s*;\s*listen.group = nobody/listen.group = nginx/' ${WWW_CONFIG} &&\
|
|
|
sed -i 's/^\s*;\s*listen.mode = 0660/listen.mode = 0660/' ${WWW_CONFIG}
|