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

docker.io/library/php:8.2.27-cli-alpine3.20 - 国内下载镜像源 浏览次数:34 安全受验证的发布者-Docker
这是镜像描述信息:

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

源镜像 docker.io/library/php:8.2.27-cli-alpine3.20
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20
镜像ID sha256:299bbc4a36e65ae46929d4096c9e4d7606e805192bfd2a64727d6bb4263828ef
镜像TAG 8.2.27-cli-alpine3.20
大小 104.19MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php -a
启动入口 docker-php-entrypoint
工作目录 /
OS/平台 linux/amd64
浏览量 34 次
贡献者 ch*****n@hudongtang.cn
镜像创建 2024-12-19T16:49:54Z
同步时间 2025-01-06 09:54
更新时间 2025-01-17 16:49
环境变量
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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC PHP_VERSION=8.2.27 PHP_URL=https://www.php.net/distributions/php-8.2.27.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.27.tar.xz.asc PHP_SHA256=3eec91294d8c09b3df80b39ec36d574ed9b05de4c8afcb25fa215d48f9ecbc6b
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2025-01-06 09:54

低危漏洞:0 中危漏洞:0 高危漏洞:0 严重漏洞:0

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20  docker.io/library/php:8.2.27-cli-alpine3.20

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20  docker.io/library/php:8.2.27-cli-alpine3.20

Shell快速替换命令

sed -i 's#library/php:8.2.27-cli-alpine3.20#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20  docker.io/library/php:8.2.27-cli-alpine3.20'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20  docker.io/library/php:8.2.27-cli-alpine3.20'

镜像构建历史


# 2024-12-20 00:49:54  0.00B 设置默认要执行的命令
CMD ["php" "-a"]
                        
# 2024-12-20 00:49:54  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2024-12-20 00:49:54  53.71KB 执行命令并创建新的镜像层
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
                        
# 2024-12-20 00:49:54  7.20KB 复制新文件或目录到容器中
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
                        
# 2024-12-20 00:49:54  71.64MB 执行命令并创建新的镜像层
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 				--enable-phpdbg 		--enable-phpdbg-readline 				--with-pear 				$(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') 	; 	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
                        
# 2024-12-20 00:49:54  587.00B 复制新文件或目录到容器中
COPY docker-php-source /usr/local/bin/ # buildkit
                        
# 2024-12-20 00:49:54  12.20MB 执行命令并创建新的镜像层
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
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_SHA256
ENV PHP_SHA256=3eec91294d8c09b3df80b39ec36d574ed9b05de4c8afcb25fa215d48f9ecbc6b
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_URL PHP_ASC_URL
ENV PHP_URL=https://www.php.net/distributions/php-8.2.27.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.27.tar.xz.asc
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_VERSION
ENV PHP_VERSION=8.2.27
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 GPG_KEYS
ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_LDFLAGS
ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2024-12-20 00:49:54  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
                        
# 2024-12-20 00:49:54  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
                        
# 2024-12-20 00:49:54  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
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_INI_DIR
ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2024-12-20 00:49:54  3.04KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	adduser -u 82 -D -S -G www-data www-data # buildkit
                        
# 2024-12-20 00:49:54  12.49MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache 		ca-certificates 		curl 		openssl 		tar 		xz # buildkit
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHPIZE_DEPS
ENV PHPIZE_DEPS=autoconf 		dpkg-dev dpkg 		file 		g++ 		gcc 		libc-dev 		make 		pkgconf 		re2c
                        
# 2024-09-06 20:05:36  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-09-06 20:05:36  7.80MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:299bbc4a36e65ae46929d4096c9e4d7606e805192bfd2a64727d6bb4263828ef",
    "RepoTags": [
        "php:8.2.27-cli-alpine3.20",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:8.2.27-cli-alpine3.20"
    ],
    "RepoDigests": [
        "php@sha256:29093276d3376c69b43a8e4e2198ed5c59ff9bfa9594c268e380545e85e0eeb1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php@sha256:62682ad5bbb2444905badc51e598afe00cee183936898e11e27a3d29477f4509"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-19T16:49:54Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC",
            "PHP_VERSION=8.2.27",
            "PHP_URL=https://www.php.net/distributions/php-8.2.27.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-8.2.27.tar.xz.asc",
            "PHP_SHA256=3eec91294d8c09b3df80b39ec36d574ed9b05de4c8afcb25fa215d48f9ecbc6b"
        ],
        "Cmd": [
            "php",
            "-a"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 104190737,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/7addc5b95f3f2e5b559a46191b09d89e4ff24ba55127ffb27ad13c84deb846bf/diff:/var/lib/docker/overlay2/0f6fca66238db7c075af99bdfbd0abf4825fd83e4753e3247c04a6fafefdddc2/diff:/var/lib/docker/overlay2/eaee20c74728135ac9c4567fb12e40945ea9c1cd8299eb818057017f9ce91528/diff:/var/lib/docker/overlay2/638bdf23ae135da673a9a834f3ddc5b5074417e96b3ac2313fb34492077a702c/diff:/var/lib/docker/overlay2/dea7200914190b390e906e9112629a7d0aa4f7d68eda4d76b527499a79f2d21a/diff:/var/lib/docker/overlay2/490d9cd37f5aeb505a693ce5902e7687c0d5fb3c0db9bf8fb46f918cfee80c73/diff:/var/lib/docker/overlay2/9e1fd7fae4a7d6d79ed3db51168a9fc041647d6658f0e44c457bc97616cf06aa/diff:/var/lib/docker/overlay2/7acffac65326f84666f0f3d0cc018850872c3d4f355786a224e0b8b5c4538b14/diff",
            "MergedDir": "/var/lib/docker/overlay2/1e572df967e59754acc4a5f2090efef508997d1188edc175d47d9eb5c98d478b/merged",
            "UpperDir": "/var/lib/docker/overlay2/1e572df967e59754acc4a5f2090efef508997d1188edc175d47d9eb5c98d478b/diff",
            "WorkDir": "/var/lib/docker/overlay2/1e572df967e59754acc4a5f2090efef508997d1188edc175d47d9eb5c98d478b/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558",
            "sha256:f1f3f5acb475a8cb8f496227e47f49abe6370abf845682f5a4027557b6115808",
            "sha256:57b48214638e2a63d1a72e5601f188849bc6523280d5d9a4326755c1ce5f27b2",
            "sha256:f138a84b06c230e87a565691093d2b58783c553f5f2d2ec8fb7ebb1cdbc6439e",
            "sha256:f8ea9a56bbc95fcba5094f3b90b809540862dc18ae02e69af5487f858b8fbe7e",
            "sha256:4a72175f920f2419d1fd10cedbf90edadc612a5d5ea29728728434c664175bab",
            "sha256:30417f7617e3dcbc61529121c945750e7a08417b4843a8cba62b6911c0dea07a",
            "sha256:cb11a284ca3a9851fd5ceeb16722744c7886aed8203a391fb4f948afd78e0838",
            "sha256:6467db32b83a838302504a0cd59345f8715e4642cf43b2498fc8cbe53ebb4008"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-06T09:54:19.808535707+08:00"
    }
}

更多版本

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

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

docker.io/library/php:5.6.40-alpine

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

docker.io/library/php:7.4-apache

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

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

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

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

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

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

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

docker.io/library/php:7.4.33-fpm

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

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

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

docker.io/library/php:8.2-cli

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

docker.io/library/php:8.3.15-cli

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

docker.io/library/php:8.3.10-fpm

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