10 changed files with 123 additions and 22 deletions
@ -0,0 +1,11 @@ |
|||||||
|
{ |
||||||
|
"indent": 2, |
||||||
|
"spaces": true, |
||||||
|
"alignComments": true, |
||||||
|
"wrap": 120, |
||||||
|
"case": { |
||||||
|
"directive": "lower", |
||||||
|
"keyword": "lower" |
||||||
|
}, |
||||||
|
"trimTrailingSpaces": true |
||||||
|
} |
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,3 @@ |
|||||||
|
<?php |
||||||
|
// 打印完整的 PHP 信息(HTML 格式,浏览器访问时自动排版) |
||||||
|
phpinfo(); |
||||||
@ -0,0 +1,3 @@ |
|||||||
|
<?php |
||||||
|
// 打印完整的 PHP 信息(HTML 格式,浏览器访问时自动排版) |
||||||
|
phpinfo(); |
||||||
@ -0,0 +1,48 @@ |
|||||||
|
server { |
||||||
|
server_name php84.com local.php84.com; |
||||||
|
|
||||||
|
listen 80; |
||||||
|
|
||||||
|
root /www/test; |
||||||
|
index index.html index.htm index.php; |
||||||
|
|
||||||
|
location /nginx_status { |
||||||
|
stub_status on; |
||||||
|
access_log off; |
||||||
|
allow 127.0.0.1; |
||||||
|
deny all; |
||||||
|
} |
||||||
|
|
||||||
|
location ~ ^/proxy/(.+)$ { |
||||||
|
set $realpath $1; |
||||||
|
set $lastpath $realpath$is_args$args; |
||||||
|
proxy_set_header Referer ''; |
||||||
|
proxy_pass http://$lastpath; |
||||||
|
} |
||||||
|
|
||||||
|
location ~ ^/(ueditor/php/.*) { |
||||||
|
rewrite ^/(ueditor/php/.*) /$1 break; |
||||||
|
root /www/test; |
||||||
|
} |
||||||
|
location ~ .*\.(php|php5)$ { |
||||||
|
fastcgi_pass php84:9000; |
||||||
|
fastcgi_index index.php; |
||||||
|
include fastcgi.conf; |
||||||
|
} |
||||||
|
|
||||||
|
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ { |
||||||
|
root /www/test; |
||||||
|
expires 30d; |
||||||
|
access_log off; |
||||||
|
} |
||||||
|
location ~ .*\.(js|css|ttf|woff|woff2)$ { |
||||||
|
root /www/test; |
||||||
|
expires 7d; |
||||||
|
access_log off; |
||||||
|
} |
||||||
|
location ~ .*\.(html)$ { |
||||||
|
root /www/test; |
||||||
|
expires 7d; |
||||||
|
access_log off; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,24 @@ |
|||||||
|
FROM php:8.4.14-fpm-alpine3.21 |
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai |
||||||
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ |
||||||
|
&& apk update \ |
||||||
|
&& apk add --no-cache tzdata \ |
||||||
|
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ |
||||||
|
&& apk add --no-cache autoconf \ |
||||||
|
&& apk add --no-cache build-base \ |
||||||
|
&& apk add --no-cache zlib-dev \ |
||||||
|
&& apk add --no-cache libpng-dev \ |
||||||
|
&& apk add --no-cache libsodium-dev \ |
||||||
|
&& apk add --no-cache libzip-dev \ |
||||||
|
&& docker-php-ext-install -j$(nproc) gd \ |
||||||
|
&& docker-php-ext-install -j$(nproc) sodium \ |
||||||
|
&& docker-php-ext-install -j$(nproc) zip \ |
||||||
|
&& docker-php-ext-install -j$(nproc) pdo_mysql\ |
||||||
|
&& pecl install redis \ |
||||||
|
&& docker-php-ext-enable redis \ |
||||||
|
&& curl -sS https://getcomposer.org/installer | php \ |
||||||
|
&& mv composer.phar /usr/local/bin/composer \ |
||||||
|
&& apk add --no-cache libjpeg-turbo-dev \ |
||||||
|
&& docker-php-ext-configure gd --with-jpeg \ |
||||||
|
&& docker-php-ext-install -j$(nproc) gd |
||||||
Loading…
Reference in new issue