PHP-FPM alpine v.8.3.36
2.0K
PHP-FPM image with additional PHP extensions, development utilities, browser automation and media processing tools.
| Component | Version |
|---|---|
| PHP | 8.3.36 |
| Alpine Linux | 3.24 |
| Node.js | 22.23.0 |
| Composer | Installed during image build |
| Architectures | linux/amd64, linux/arm64 |
Only PHP 8.3 is maintained in this repository.
PHP extensions installed through PECL are not version-pinned, except for SSH2 (1.3.1). Their versions depend on the build date.
docker pull c0ns0l3/php-alpine:8.3
Run from the directory containing the Dockerfile:
docker build -t c0ns0l3/php-alpine:8.3 .
Create a builder once:
docker buildx create --name php-builder --driver docker-container --use
docker buildx inspect --bootstrap
To select an existing builder:
docker buildx use php-builder
Authenticate with Docker Hub:
docker login
Build and publish:
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t c0ns0l3/php-alpine:8.3 \
--push .
Building a non-native architecture requires emulation or a builder with a native node for that architecture.
On an AMD64 builder:
docker buildx build \
--platform linux/amd64 \
-t c0ns0l3/php-alpine:8.3-amd64 \
--push .
On an ARM64 builder, using the same Dockerfile revision:
docker buildx build \
--platform linux/arm64 \
-t c0ns0l3/php-alpine:8.3-arm64 \
--push .
After both images have been pushed, publish the shared tag:
docker buildx imagetools create \
-t c0ns0l3/php-alpine:8.3 \
c0ns0l3/php-alpine:8.3-amd64 \
c0ns0l3/php-alpine:8.3-arm64
Docker automatically selects the appropriate architecture when pulling the shared tag.
docker buildx imagetools inspect c0ns0l3/php-alpine:8.3
/var/wwwwww-data UID: 1000/usr/bin/chromium-browserThe image sets:
ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium-browser"
The www-data UID is configured during the build:
usermod -u 1000 www-data
This changes the user ID; it does not change the group ID or existing file ownership.
Additional extensions built or enabled by the Dockerfile:
Redis is built with support for:
docker run --rm c0ns0l3/php-alpine:8.3 php -v
docker run --rm c0ns0l3/php-alpine:8.3 php -m
docker run --rm c0ns0l3/php-alpine:8.3 node --version
docker run --rm c0ns0l3/php-alpine:8.3 composer --version
docker run --rm c0ns0l3/php-alpine:8.3 cat /etc/alpine-release
Content type
Image
Digest
sha256:3afec03c2…
Size
481.8 MB
Last updated
about 1 month ago
docker pull c0ns0l3/php-alpine