Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu:noble-20240605

ARG PHP_VERSION="8.4.4"
ARG PHP_PACKAGE_BASENAME="php8.4"
ARG PHP_PACKAGE_BASE_VERSION="8.4"
ARG PHP_FPM_BINARY_PATH="/usr/sbin/php-fpm8.4"
ARG PHP_VERSION="8.5.1"
ARG PHP_PACKAGE_BASENAME="php8.5"
ARG PHP_PACKAGE_BASE_VERSION="8.5"
ARG PHP_FPM_BINARY_PATH="/usr/sbin/php-fpm8.5"
ARG UNIT_VERSION="1.31.0"
ARG APACHE2_VERSION="2.4.58"
ENV PHP_VERSION=$PHP_VERSION
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# endava/docker-php:8.3.x-ubuntu
# endava/docker-php:8.5.x-ubuntu

## Usage

Expand All @@ -12,7 +12,7 @@ $ echo '<?php phpinfo();' > public/index.php
2. Run the NGINX Unit Version with:

```shell
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.3.2-ubuntu-unit
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.5.1-ubuntu-unit
```

and open http://localhost:8080 to see phpinfo unit.
Expand All @@ -26,7 +26,7 @@ Time per request: 12.144 [ms] (mean)
3. Run the Apache2 Version with:

```shell
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.3.2-ubuntu-apache2
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.5.1-ubuntu-apache2
```

and open http://localhost:8080 to see phpinfo on apache2.
Expand All @@ -48,15 +48,15 @@ version: "2.1"

services:
php-cli:
image: endava/php:8.3.2-ubuntu
image: endava/php:8.5.1-ubuntu
volumes:
- ./:/usr/src/app
user: "${UID-www-data}:${GID-www-data}"
entrypoint: bash
depends_on:
- nginx
php-fpm:
image: endava/php:8.3.2-ubuntu-fpm
image: endava/php:8.5.1-ubuntu-fpm
user: "${UID-www-data}:${GID-www-data}"
volumes:
- ./:/usr/src/app
Expand Down Expand Up @@ -99,11 +99,11 @@ $docker-compose run php-cli
⠿ Container docker-php-php-fpm-1
⠿ Container docker-php-nginx-1
bash-5.1$ php -v
PHP 8.3.2-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Jan 20 2024 14:16:40) (NTS)
PHP 8.5.1-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Jan 9 2026 14:16:40) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.2, Copyright (c) Zend Technologies
with Zend OPcache v8.3.2-1+ubuntu22.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies
with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
Zend Engine v4.5.1, Copyright (c) Zend Technologies
with Zend OPcache v8.5.1-1+ubuntu22.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies
with Xdebug v3.5.0, Copyright (c) 2002-2026, by Derick Rethans
```

and open http://localhost:8080/ to see phpinfo with FPM/FastCGI as server api.
Expand Down Expand Up @@ -250,7 +250,7 @@ You can define the crontab's content with an environment variable like this:
```yaml
services:
import-data-cron:
image: endava/php:8.3.2-ubuntu
image: endava/php:8.5.1-ubuntu
command: start-cron
environment:
- 'CRONTAB_USER=www-data'
Expand Down Expand Up @@ -294,7 +294,7 @@ Usage in your `docker-compose.yml`:
```yaml
services:
crontab:
image: endava/php:8.3.2-ubuntu
image: endava/php:8.5.1-ubuntu
command: start-cron
volumes:
- ./:/usr/src/app
Expand All @@ -307,7 +307,7 @@ cron location with the `CRON_PATH` environment variable:
```yaml
services:
crontab:
image: endava/php:8.3.2-ubuntu
image: endava/php:8.5.1-ubuntu
command: start-cron
environment:
- CRON_PATH=/usr/src/app/crontabs
Expand Down
Loading