A PHP 8.2 FPM and Apache based Docker base image
MIT License
A PHP 8.2 (FPM and Apache) based Docker base image.
docker pull ghcr.io/ilyes512/php82:runtime-latest
docker pull ghcr.io/ilyes512/php82:builder-latest
docker pull ghcr.io/ilyes512/php82:builder-nodejs-latest
docker pull ghcr.io/ilyes512/php82:vscode-latest
docker pull ghcr.io/ilyes512/php82/apache:runtime-latest
docker pull ghcr.io/ilyes512/php82/apache:builder-latest
docker pull ghcr.io/ilyes512/php82/apache:builder-nodejs-latest
docker pull ghcr.io/ilyes512/php82/apache:vscode-latest
The tag scheme: {TARGET}-{VERSION}
runtime
, builder
, builder_nodejs
or vscode
latest
or tag i.e. 1.0.0
There are multiple targets:
builder_nodejs
-target and adds some VS Code deps.Building runtime
-target:
docker build --tag ghcr.io/ilyes512/php82:runtime-latest --file fpm/Dockerfile --target runtime .
Building builder
-target:
docker build --tag ghcr.io/ilyes512/php82:builder-latest --file fpm/Dockerfile --target builder .
Building builder_nodejs
-target:
docker build --tag ghcr.io/ilyes512/php82:builder-nodejs-latest --file fpm/Dockerfile --target builder_nodejs .
Building vscode
-target:
docker build --tag ghcr.io/ilyes512/php82:vscode-latest --file fpm/Dockerfile --target vscode .
Available Task commands:
* build: Build all PHP Docker image targets of both the FPM and Apache variants
* build:apache: Build all PHP Docker image targets of the Apache variant
* build:fpm: Build all PHP Docker image targets of the FPM variant
* lint:apache: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
* lint:fpm: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
* shell:apache: Interactive shell
* shell:fpm: Interactive shell