Skip to content

Commit 67713eb

Browse files
committed
feat: php 8.5 support, drop 8.1 support
1 parent 7793434 commit 67713eb

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: hadolint/hadolint-action@v3.1.0
10+
- uses: hadolint/hadolint-action@v3.3.0
1111
sh-checker:
1212
runs-on: ubuntu-latest
1313
steps:
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php_version: ['8.1', '8.2', '8.3', '8.4']
22+
php_version: ['8.2', '8.3', '8.4', '8.5']
2323
steps:
2424
- uses: actions/checkout@v4
2525
- name: Build Docker image

.github/workflows/latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
latest:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313
- uses: docker/setup-qemu-action@v3
1414
- uses: docker/setup-buildx-action@v3
1515
- name: Sign into Docker

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
php_version: ['8.1', '8.2', '8.3', '8.4']
13+
php_version: ['8.2', '8.3', '8.4', '8.5']
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- uses: docker/setup-qemu-action@v3
1717
- uses: docker/setup-buildx-action@v3
1818
- name: Sign into Docker

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 36 (2025-11-24)
4+
5+
- Adds PHP 8.5 support
6+
- Drops support for PHP 8.1
7+
38
## 35 (2025-07-22)
49

510
- Adds `pcntl` PHP extension for process control (eg: Laravel Horizon)

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHP_VERSION=8.4
1+
ARG PHP_VERSION=8.5
22
FROM php:${PHP_VERSION}-fpm-alpine
33

44
# PHP_CPPFLAGS are used by the docker-php-ext-* scripts
@@ -56,10 +56,13 @@ RUN apk add --no-cache --update \
5656
bcmath \
5757
gd \
5858
intl \
59-
opcache \
6059
pcntl \
6160
pdo_mysql \
6261
zip \
62+
# OPcache comes bundled with PHP 8.5 and later, only install it for earlier versions
63+
&& if [ "$(php -r 'echo PHP_VERSION;')" \< "8.5" ]; then \
64+
docker-php-ext-install opcache; \
65+
fi \
6366
# Remove dev packages once we're done using them
6467
&& apk del \
6568
autoconf \

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,19 @@ Place your `PHP` or `HTML` site files into `/var/www/html/public` inside the con
6666

6767
### Laravel
6868

69-
Place the root of your laravel project in `/var/www/html` so that the `public` folder of laravel lines up with the directory served by this nginx image.
69+
Place the root of your Laravel project in `/var/www/html` so that the `public` folder of Laravel lines up with the directory served by this nginx image.
7070

7171
## Docker Tags
7272

7373
Tags for this image follow the syntax of `PHP_VERSION-IMAGE_VERSION`; for instance, a valid tag would be `8.2-16` signifying to use PHP v8.2 and the 16th version of this image (nginx config, Dockerfile, etc).
7474

7575
### PHP Versions
7676

77+
- `8.5` - uses the latest release on the PHP 8.5 Alpine track. (Starting with image version `36`)
7778
- `8.4` - uses the latest release on the PHP 8.4 Alpine track. (Starting with image version `21`)
7879
- `8.3` - uses the latest release on the PHP 8.3 Alpine track. (Starting with image version `18`)
7980
- `8.2` - uses the latest release on the PHP 8.2 Alpine track. (Starting with image version `12`)
80-
- `8.1` - uses the latest release on the PHP 8.1 Alpine track. (Starting with image version `9`)
81+
- `8.1` - **DEPRECATED** uses the latest release on the PHP 8.1 Alpine track. (Starting with image version `9`)
8182
- `8.0` - **DEPRECATED** uses the latest release on the PHP 8.0 Alpine track. (Dropped support with image version `19`)
8283
- `7.4` - **DEPRECATED** uses the latest release on the PHP 7.4 Alpine track. (Dropped support with image version `19`)
8384

0 commit comments

Comments
 (0)