Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Ilyes512/php83-fpm

Repository files navigation

php83-fpm

Build Images

A PHP 8.3 (FPM) based Docker base image.

NOTE:
This is replaced by https://github.com/Ilyes512/php83 which contains both a FPM and a Apache based version.

Pulling the images

docker pull ghcr.io/ilyes512/php83-fpm:runtime-latest
docker pull ghcr.io/ilyes512/php83-fpm:builder-latest
docker pull ghcr.io/ilyes512/php83-fpm:builder-nodejs-latest
docker pull ghcr.io/ilyes512/php83-fpm:vscode-latest

The tag scheme: {TARGET}-{VERSION}

  • {TARGET}: runtime, builder, builder_nodejs or vscode
  • {VERSION}: latest or tag i.e. 1.0.0

Building the docker image(s)

There are multiple targets:

  • runtime: this is for production. It does not contain any development tools like Composer and Xdebug.
  • builder: this is for development. This is based on the runtime-target and it adds Composer, Xdebug etc.
  • builder_nodejs: this is for development. This is based on the builder-target and it adds NodeJS.
  • vscode: this is for development using VS Code Remote. This is based on the builder_nodejs-target and adds some VS Code deps.

Building runtime-target:

docker build --tag ghcr.io/ilyes512/php83-fpm:runtime-latest --target runtime .

Building builder-target:

docker build --tag ghcr.io/ilyes512/php83-fpm:builder-latest --target builder .

Building builder_nodejs-target:

docker build --tag ghcr.io/ilyes512/php83-fpm:builder-nodejs-latest --target builder_nodejs .

Building vscode-target:

docker build --tag ghcr.io/ilyes512/php83-fpm:vscode-latest --target vscode .

Task commands

Available Task commands:

* build:       Build all PHP Docker image targets
* lint:        Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
* shell:       Interactive shell