Skip to content

Commit 1a8c8b7

Browse files
author
张俊杰
committed
添加php8.1.4
1 parent b17e1aa commit 1a8c8b7

File tree

4 files changed

+92
-34
lines changed

4 files changed

+92
-34
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Compose 是一个工具,定义和运行复杂Docker应用。使用Compose,
2121
php5.6|registry.cn-shanghai.aliyuncs.com/ibaotu/php
2222
php7.1|registry.cn-shanghai.aliyuncs.com/ibaotu/php7.1
2323
php7.2|registry.cn-shanghai.aliyuncs.com/ibaotu/php7.2
24+
php8.1.4|registry.cn-shanghai.aliyuncs.com/ibaotu/php8.1.4
2425

2526
1. [下载发布文件](https://github.com/zhangjunjie6b/phpdocker/releases)
2627
2. 启动 docker-compose
@@ -297,6 +298,56 @@ zlib
297298
Zend OPcache
298299
```
299300

301+
php8.1.4
302+
```
303+
[PHP Modules]
304+
bcmath
305+
Core
306+
ctype
307+
curl
308+
date
309+
dom
310+
fileinfo
311+
filter
312+
ftp
313+
gd
314+
grpc
315+
hash
316+
iconv
317+
imagick
318+
json
319+
libxml
320+
mbstring
321+
mysqli
322+
mysqlnd
323+
openssl
324+
pcre
325+
PDO
326+
pdo_mysql
327+
pdo_sqlite
328+
Phar
329+
posix
330+
readline
331+
redis
332+
Reflection
333+
session
334+
SimpleXML
335+
sodium
336+
SPL
337+
sqlite3
338+
standard
339+
tokenizer
340+
xml
341+
xmlreader
342+
xmlwriter
343+
Zend OPcache
344+
zip
345+
zlib
346+
347+
[Zend Modules]
348+
Zend OPcache
349+
```
350+
300351
### redis
301352

302353
> 版本3.2.11 注:线上redis版本2.8

docker-compose.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,20 @@ services:
6161
links:
6262
- php:php
6363
- php7:php7
64-
64+
-
65+
#php8.1.4
66+
php8.1.4:
67+
build: ./php8.1.4
68+
depends_on:
69+
- mysql
70+
- redis
71+
ports:
72+
- 9089:9000
73+
volumes:
74+
- ./www/:/www/
75+
links:
76+
- mysql:mysql
77+
- redis:redis
6578
#5.6
6679
mysql:
6780
build: ./mysql

php8.1.4/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM php:8.1.4-fpm
2+
RUN apt-get update
3+
RUN apt-get install -y \
4+
libfreetype6-dev \
5+
libjpeg62-turbo-dev \
6+
libmcrypt-dev \
7+
libpng-dev \
8+
libxml2-dev \
9+
libmagickwand-dev \
10+
libmagickcore-dev \
11+
libgmp-dev \
12+
libzip-dev \
13+
libevent-dev \
14+
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
15+
&& docker-php-ext-install -j$(nproc) gd \
16+
&& docker-php-ext-install -j$(nproc) bcmath mysqli pdo_mysql opcache \
17+
&& curl -sS https://getcomposer.org/installer | php \
18+
&& mv /var/www/html/composer.phar /usr/local/bin/composer \
19+
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
20+
21+
RUN pecl install redis-5.3.7 \
22+
&& pecl install imagick 3.7.0 \
23+
&& pecl install zip
24+
25+
RUN pecl install grpc 1.33.0 \
26+
&& docker-php-ext-enable imagick redis grpc zip
27+

www_test/1.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)