Skip to content

LynxSolutions/php-docker

Repository files navigation

PHP base image

A PHP base image mainly for Laravel projects.

Being based on it, this image is a drop-in replacement for the Official PHP image.

Extensions

The main images come with some commonly used extensions already installed:

The -xdebug and -pcov suffixed images also come with Xdebug and PCOV installed accordingly.

expose_php = Off

Adding support for a new version

1. Update the VERSIONS and LATEST constants in versions.php with the newer version.

const VERSIONS = [
    '8.2',
    '8.3',
    '8.4',
+   '8.5',
];

- const LATEST = '8.4';
+ const LATEST = '8.5';

2. Run php versions.php to generate the new versions.json

php versions.php

3. Run apply-templates.sh to generate the Dockerfiles

./apply-tempaltes.sh

4. Build and test the newly generated Dockerfiles

Example:

docker buildx build -t php:8.5-fpm-alpine-xdebug-test ./8.5/fpm-alpine-xdebug

Contributors 2

  •  
  •