Skip to content

Commit a78c265

Browse files
committed
5.9.0pre
1 parent 03f8bb7 commit a78c265

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
examples/

Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ RUN echo "" && \
5252
package install \
5353
WORDPRESS_RUN_DEPS \
5454
&& \
55+
php-ext prepare && \
56+
php-ext reset && \
57+
php-ext enable core && \
5558
curl -o /usr/local/bin/wp-cli https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
5659
chmod +x /usr/local/bin/wp-cli && \
5760
package cleanup

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## About
44

5-
This repository will build a conatiner image for running [Laravel](https://laravel.net/) applications either in a development or production capacity, including [Nginx](https://www.nginx.org) w/[PHP-FPM](https://php.net).
5+
This repository will build a container image for running [Laravel](https://laravel.net/) applications either in a development or production capacity, including [Nginx](https://www.nginx.org) w/[PHP-FPM](https://php.net).
66

77
## Maintainer
88

rootfs/etc/nginx/sites.available/wordpress.conf

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,26 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5-
server {
6-
listen {{NGINX_LISTEN_PORT}};
5+
server {
6+
listen {{NGINX_LISTEN_PORT}};
77

8-
root {{NGINX_WEBROOT}};
9-
index index.php;
8+
root {{NGINX_WEBROOT}};
9+
index index.php;
1010

11-
location / {
12-
try_files $uri $uri/ /index.php?$args;
13-
}
11+
include {{NGINX_HEADER_FILE}};
1412

15-
location ~ [^/]\.php(/|$) {
16-
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
17-
if (!-f $document_root$fastcgi_script_name) {
18-
return 404;
19-
}
20-
include /etc/nginx/snippets/php-fpm.conf;
21-
fastcgi_param PATH_INFO $fastcgi_path_info;
22-
include fastcgi_params;
23-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
24-
}
13+
location / {
14+
try_files $uri $uri/ /index.php?$args;
15+
}
2516

26-
### Don't edit past here
27-
include /etc/nginx/snippets/site_optimization.conf;
28-
include /etc/nginx/snippets/exploit_protection.conf;
29-
}
17+
location ~ [^/]\.php(/|$) {
18+
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
19+
if (!-f $document_root$fastcgi_script_name) {
20+
return 404;
21+
}
22+
include /etc/nginx/snippets/server.available/php-fpm/www.conf;
23+
fastcgi_param PATH_INFO $fastcgi_path_info;
24+
include fastcgi_params;
25+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
26+
}
27+
}

0 commit comments

Comments
 (0)