docker.io/library/php:8.3-fpm-alpine linux/amd64

docker.io/library/php:8.3-fpm-alpine - 国内下载镜像源 浏览次数:16 安全受验证的发布者-Docker
这是镜像描述信息:

PHP是用于Web开发的一种脚本语言,旨在使网络开发变得容易快速。它最初由Rasmus Lerdorf于1995年创建,后来由Andi Gutmans、Sascha Schumann和Zeev Suraski等人继续发展。目前,PHP 7.x已成为最流行的Web服务器语言之一。

源镜像 docker.io/library/php:8.3-fpm-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine
镜像ID sha256:f922ea374b6eda71a4859e518944dcf6b398be7517e1c21c7398a89f4f0f6b74
镜像TAG 8.3-fpm-alpine
大小 84.90MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php-fpm
启动入口 docker-php-entrypoint
工作目录 /var/www/html
OS/平台 linux/amd64
浏览量 16 次
贡献者
镜像创建 2025-03-13T15:35:23Z
同步时间 2025-04-01 22:43
更新时间 2025-04-03 23:31
开放端口
9000/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c PHP_INI_DIR=/usr/local/etc/php PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PHP_LDFLAGS=-Wl,-O1 -pie GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA PHP_VERSION=8.3.19 PHP_URL=https://www.php.net/distributions/php-8.3.19.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.19.tar.xz.asc PHP_SHA256=976e4077dd25bec96b5dfe8938052d243bbd838f95368a204896eff12756545f

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine  docker.io/library/php:8.3-fpm-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine  docker.io/library/php:8.3-fpm-alpine

Shell快速替换命令

sed -i 's#library/php:8.3-fpm-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine  docker.io/library/php:8.3-fpm-alpine'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine  docker.io/library/php:8.3-fpm-alpine'

镜像构建历史


# 2025-03-13 23:35:23  0.00B 设置默认要执行的命令
CMD ["php-fpm"]
                        
# 2025-03-13 23:35:23  0.00B 声明容器运行时监听的端口
EXPOSE map[9000/tcp:{}]
                        
# 2025-03-13 23:35:23  0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
                        
# 2025-03-13 23:35:23  28.01KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	cd /usr/local/etc; 	if [ -d php-fpm.d ]; then 		sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; 		cp php-fpm.d/www.conf.default php-fpm.d/www.conf; 	else 		mkdir php-fpm.d; 		cp php-fpm.conf.default php-fpm.d/www.conf; 		{ 			echo '[global]'; 			echo 'include=etc/php-fpm.d/*.conf'; 		} | tee php-fpm.conf; 	fi; 	{ 		echo '[global]'; 		echo 'error_log = /proc/self/fd/2'; 		echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; 		echo; 		echo '[www]'; 		echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; 		echo '; https://bugs.php.net/bug.php?id=73886'; 		echo 'access.log = /proc/self/fd/2'; 		echo; 		echo 'clear_env = no'; 		echo; 		echo '; Ensure worker stdout and stderr are sent to the main error log.'; 		echo 'catch_workers_output = yes'; 		echo 'decorate_workers_output = no'; 	} | tee php-fpm.d/docker.conf; 	{ 		echo '[global]'; 		echo 'daemonize = no'; 		echo; 		echo '[www]'; 		echo 'listen = 9000'; 	} | tee php-fpm.d/zz-docker.conf; 	mkdir -p "$PHP_INI_DIR/conf.d"; 	{ 		echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; 		echo 'fastcgi.logging = Off'; 	} > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
                        
# 2025-03-13 23:35:23  0.00B 设置工作目录为/var/www/html
WORKDIR /var/www/html
                        
# 2025-03-13 23:35:23  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2025-03-13 23:35:23  54.53KB 执行命令并创建新的镜像层
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
                        
# 2025-03-13 23:35:23  7.20KB 复制新文件或目录到容器中
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
                        
# 2025-03-13 23:35:23  57.29MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apk add --no-cache --virtual .build-deps 		$PHPIZE_DEPS 		argon2-dev 		coreutils 		curl-dev 		gnu-libiconv-dev 		libsodium-dev 		libxml2-dev 		linux-headers 		oniguruma-dev 		openssl-dev 		readline-dev 		sqlite-dev 	; 		rm -vf /usr/include/iconv.h; 		export 		CFLAGS="$PHP_CFLAGS" 		CPPFLAGS="$PHP_CPPFLAGS" 		LDFLAGS="$PHP_LDFLAGS" 		PHP_BUILD_PROVIDER='https://github.com/docker-library/php' 		PHP_UNAME='Linux - Docker' 	; 	docker-php-source extract; 	cd /usr/src/php; 	gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	./configure 		--build="$gnuArch" 		--with-config-file-path="$PHP_INI_DIR" 		--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" 				--enable-option-checking=fatal 				--with-mhash 				--with-pic 				--enable-mbstring 		--enable-mysqlnd 		--with-password-argon2 		--with-sodium=shared 		--with-pdo-sqlite=/usr 		--with-sqlite3=/usr 				--with-curl 		--with-iconv=/usr 		--with-openssl 		--with-readline 		--with-zlib 				--disable-phpdbg 				--with-pear 						--disable-cgi 				--enable-fpm 		--with-fpm-user=www-data 		--with-fpm-group=www-data 	; 	make -j "$(nproc)"; 	find -type f -name '*.a' -delete; 	make install; 	find 		/usr/local 		-type f 		-perm '/0111' 		-exec sh -euxc ' 			strip --strip-all "$@" || : 		' -- '{}' + 	; 	make clean; 		cp -v php.ini-* "$PHP_INI_DIR/"; 		cd /; 	docker-php-source delete; 		runDeps="$( 		scanelf --needed --nobanner --format '%n#p' --recursive /usr/local 			| tr ',' '\n' 			| sort -u 			| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' 	)"; 	apk add --no-cache $runDeps; 		apk del --no-network .build-deps; 		pecl update-channels; 	rm -rf /tmp/pear ~/.pearrc; 		php --version # buildkit
                        
# 2025-03-13 23:35:23  587.00B 复制新文件或目录到容器中
COPY docker-php-source /usr/local/bin/ # buildkit
                        
# 2025-03-13 23:35:23  12.61MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		apk add --no-cache --virtual .fetch-deps gnupg; 		mkdir -p /usr/src; 	cd /usr/src; 		curl -fsSL -o php.tar.xz "$PHP_URL"; 		if [ -n "$PHP_SHA256" ]; then 		echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; 	fi; 		if [ -n "$PHP_ASC_URL" ]; then 		curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; 		export GNUPGHOME="$(mktemp -d)"; 		for key in $GPG_KEYS; do 			gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; 		done; 		gpg --batch --verify php.tar.xz.asc php.tar.xz; 		gpgconf --kill all; 		rm -rf "$GNUPGHOME"; 	fi; 		apk del --no-network .fetch-deps # buildkit
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_SHA256
ENV PHP_SHA256=976e4077dd25bec96b5dfe8938052d243bbd838f95368a204896eff12756545f
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_URL PHP_ASC_URL
ENV PHP_URL=https://www.php.net/distributions/php-8.3.19.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.19.tar.xz.asc
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_VERSION
ENV PHP_VERSION=8.3.19
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 GPG_KEYS
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_LDFLAGS
ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_CPPFLAGS -D_FILE_OFFSET_BITS
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_CFLAGS -D_FILE_OFFSET_BITS
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                        
# 2025-03-13 23:35:23  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	mkdir -p "$PHP_INI_DIR/conf.d"; 	[ ! -d /var/www/html ]; 	mkdir -p /var/www/html; 	chown www-data:www-data /var/www/html; 	chmod 1777 /var/www/html # buildkit
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHP_INI_DIR
ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2025-03-13 23:35:23  3.03KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	adduser -u 82 -D -S -G www-data www-data # buildkit
                        
# 2025-03-13 23:35:23  7.07MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache 		ca-certificates 		curl 		openssl 		tar 		xz # buildkit
                        
# 2025-03-13 23:35:23  0.00B 设置环境变量 PHPIZE_DEPS
ENV PHPIZE_DEPS=autoconf 		dpkg-dev dpkg 		file 		g++ 		gcc 		libc-dev 		make 		pkgconf 		re2c
                        
# 2025-02-14 11:28:36  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2025-02-14 11:28:36  7.83MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:f922ea374b6eda71a4859e518944dcf6b398be7517e1c21c7398a89f4f0f6b74",
    "RepoTags": [
        "php:8.3-fpm-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.3-fpm-alpine"
    ],
    "RepoDigests": [
        "php@sha256:c0dd989d0eef2bc1dad44c891e1347122547d649090decaaa2d539399abd0c61",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php@sha256:943633df77ae0c4a6fbfcbb5b0bc80a2d92f9661a2354351010e9002e419fe81"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-03-13T15:35:23Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "9000/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c",
            "PHP_INI_DIR=/usr/local/etc/php",
            "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
            "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
            "PHP_LDFLAGS=-Wl,-O1 -pie",
            "GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA",
            "PHP_VERSION=8.3.19",
            "PHP_URL=https://www.php.net/distributions/php-8.3.19.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-8.3.19.tar.xz.asc",
            "PHP_SHA256=976e4077dd25bec96b5dfe8938052d243bbd838f95368a204896eff12756545f"
        ],
        "Cmd": [
            "php-fpm"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/var/www/html",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGQUIT"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 84900129,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/7bc1901f198952140e4f0bf53e9f73ad0ca4913bc8fe0224561e692737c00f57/diff:/var/lib/docker/overlay2/8fb7f5674c3d1dc93b266638a560d8632743e3acfb7b12a9b17095403016e4b9/diff:/var/lib/docker/overlay2/07ca5b4c70d7e438c7086a6ce2a5a73291ffe7061f651ccfbed706c0db690977/diff:/var/lib/docker/overlay2/bdb787c300a4c277de71af614a083ac21d982323d0edf9f26ec747c3966b5bff/diff:/var/lib/docker/overlay2/fcf3b24a295b35251731db7e6bb05c5a9dd6903474bfc645c2006e78b88c5834/diff:/var/lib/docker/overlay2/55cf8f3fa4e67af7b5165d0bedc99fed86408e756f063f5c16a9fc956692b2e5/diff:/var/lib/docker/overlay2/5726bbd8948fb80361dc2f50f92870367299972fdeff4775a15b02ba9e291f27/diff:/var/lib/docker/overlay2/872616e13eb322cc342d86b0bd74602ff065cd3c571d5e3ac39bc76a35e4423e/diff:/var/lib/docker/overlay2/82621c24f48e94a372df2e4035de3b28382f713f03217a3a73077aabd4210693/diff:/var/lib/docker/overlay2/4e8c80c1de56b91b667718f35bdead0b4c91a2fdafbfe97c3c57654b169634d9/diff",
            "MergedDir": "/var/lib/docker/overlay2/dc7091b73ff643a9d5d7d21a9502483fdefb4f0abbee35c90601ccbc28c216ae/merged",
            "UpperDir": "/var/lib/docker/overlay2/dc7091b73ff643a9d5d7d21a9502483fdefb4f0abbee35c90601ccbc28c216ae/diff",
            "WorkDir": "/var/lib/docker/overlay2/dc7091b73ff643a9d5d7d21a9502483fdefb4f0abbee35c90601ccbc28c216ae/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:08000c18d16dadf9553d747a58cf44023423a9ab010aab96cf263d2216b8b350",
            "sha256:869cabf5b442426230c4d2048bdde50560af1c388b4689802547ed2b462f7c61",
            "sha256:5a5632f32759ea485691cd6a0d3ee599d3aa942ecdccc56269ee64d5299d2415",
            "sha256:095ac45facdb31191067163b63c421d1c6842a0b2dcdb351c75ab8a62f91da4d",
            "sha256:be04446bff67f4c0118c6991459988e3160bed7ade098df5750fe3b4e6dda69d",
            "sha256:9e4974830cd0d90c8ab0e213e17f7d8932fac6820bb8fd34b2111218d8e617b8",
            "sha256:cd028241320c0f3064657c54fb4d0eb4556430672c248793a671b35714a8afd7",
            "sha256:3117c09126b083a4557673662f3cea4a062aa3fc8a2a5cc6f3abacc908e942cd",
            "sha256:a51d3c68c9d654c7d493664461c6ec4838a467ce8926c977bad9262353214211",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:1088b49306456ba7fd84092e814a148a0a3a3cf7f7afdae41f9fc8bc1eaced1a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-04-01T22:43:05.923832723+08:00"
    }
}

更多版本

docker.io/library/php:7.2.34-fpm-alpine

linux/amd64 docker.io74.15MB2024-09-20 12:42
241

docker.io/library/php:5.6.40-alpine

linux/amd64 docker.io54.34MB2024-10-04 02:35
170

docker.io/library/php:7.4-apache

linux/amd64 docker.io452.59MB2024-10-22 20:36
352

docker.io/library/php:7.4.33-fpm-alpine

linux/amd64 docker.io66.76MB2024-10-30 15:06
215

docker.io/library/php:7.4-apache-buster

linux/amd64 docker.io397.63MB2024-12-04 18:45
110

docker.io/library/php:7.4.33-apache-buster

linux/amd64 docker.io397.63MB2024-12-19 11:56
114

docker.io/library/php:7.4.33-fpm

linux/amd64 docker.io443.14MB2024-12-27 17:28
112

docker.io/library/php:8.2.27-cli-alpine3.20

linux/amd64 docker.io104.19MB2025-01-06 09:54
84

docker.io/library/php:8.2-cli

linux/amd64 docker.io526.65MB2025-01-06 10:10
112

docker.io/library/php:8.3.15-cli

linux/amd64 docker.io534.50MB2025-01-06 10:11
85

docker.io/library/php:8.3.10-fpm

linux/amd64 docker.io498.90MB2025-01-08 14:36
109

docker.io/library/php:8.3.8-fpm-alpine

linux/amd64 docker.io84.46MB2025-02-05 20:48
75

docker.io/library/php:8.4.3-fpm-alpine

linux/amd64 docker.io90.68MB2025-02-18 16:22
102

docker.io/library/php:8.3.16-fpm-alpine

linux/amd64 docker.io84.79MB2025-02-19 22:23
86

docker.io/library/php:8.4-fpm

linux/amd64 docker.io503.30MB2025-02-21 12:24
69

docker.io/library/php:8.4-cli

linux/amd64 docker.io547.41MB2025-02-21 12:26
74

docker.io/library/php:8.4.4-fpm

linux/amd64 docker.io503.30MB2025-02-21 15:36
81

docker.io/library/php:8.0.30-fpm-alpine

linux/amd64 docker.io71.63MB2025-02-22 13:26
79

docker.io/library/php:8.0-fpm-alpine

linux/amd64 docker.io71.63MB2025-02-22 23:29
60

docker.io/library/php:5.6-apache

linux/amd64 docker.io354.77MB2025-03-05 21:32
54

docker.io/library/php:8.3.4-fpm-alpine3.19

linux/amd64 docker.io83.05MB2025-04-01 21:23
13

docker.io/library/php:8.3-fpm-alpine

linux/amd64 docker.io84.90MB2025-04-01 22:43
15

docker.io/library/php:8.3-fpm-alpine

linux/arm64 docker.io78.56MB2025-04-01 22:45
9