PHP-FPM Stack developed by Infra UNNES https://unnes.ac.id/ictcenter
9.1K
Repository Name: infraunnes/php-fpm:8.4-alpine
Description:
This Docker image provides a lightweight Alpine Linux environment with PHP and PHP-FPM, suitable for running PHP applications. It includes essential PHP extensions and tools for development and deployment.
Key Features:
curl, gd, mysqli, mbstring, zip, xml, and json.git, curl, wget, make, rsync, nano, and mysql-client.docker buildx for multi-architecture compatibility (amd64, arm64).Usage:
Pull the Image:
docker pull infraunnes/php-fpm:8.4-alpine
Run a Container:
docker run -d -p 80:80 infraunnes/php-fpm:8.4-alpine
Mount your application:
docker run -d -p 80:80 -v /path/to/your/app:/var/www infraunnes/php-fpm:8.4-alpine
/path/to/your/app with the local path to your PHP application.Access your application:
Open your web browser and navigate to http://localhost.
Dockerfile Breakdown:
alpine:edge provides a minimal Alpine Linux environment.apk.curl and php.rootfs: Copies the application code from the rootfs directory into the container's root directory.ENTRYPOINT: Sets tini as the entry point for proper process management.CMD: Starts PHP-FPM in foreground mode.EXPOSE: Exposes port 80 for HTTP access.WORKDIR: Sets the working directory to /var/www.Customization:
apk add php-<extension-name> to the Dockerfile.www.conf file and copy it into the container.Content type
Image
Digest
sha256:d6b499434…
Size
82.1 MB
Last updated
4 months ago
docker pull infraunnes/php-fpm:8.5-alpine