Skip to content

Commit 1b9630b

Browse files
committed
Add php8.4 image
1 parent 18c3fdc commit 1b9630b

2 files changed

Lines changed: 77 additions & 12 deletions

File tree

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.3-fpm-bullseye
1+
FROM php:8.4-fpm-bookworm
22

33
# install the PHP extensions we need
44
RUN set -eux; \
@@ -13,11 +13,7 @@ RUN set -eux; \
1313
libwebp-dev \
1414
libpq-dev \
1515
libzip-dev \
16-
jpegoptim \
17-
optipng \
1816
pngcrush \
19-
pngquant \
20-
libjpeg-progs \
2117
; \
2218
\
2319
docker-php-ext-configure gd \
@@ -35,11 +31,11 @@ RUN set -eux; \
3531
bcmath \
3632
; \
3733
\
38-
pecl install redis-5.3.7; \
34+
pecl install redis-6.3.0; \
3935
docker-php-ext-enable redis; \
4036
\
41-
pecl install apcu; \
42-
docker-php-ext-enable apcu; \
37+
pecl install apcu-5.1.28; \
38+
docker-php-ext-enable apcu; \
4339
\
4440
pecl clear-cache \
4541
\

README.md

Lines changed: 73 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,89 @@
11
# Unic Drupal PHP Base
22

3-
Drupal PHP base image with some useful additions.
3+
A PHP-FPM base image tailored for running [Drupal](https://www.drupal.org/) projects. It bundles the PHP extensions, image optimization tools, and utilities that Drupal projects commonly require.
44

55
## Versions
66

77
| PHP | Branch | Notes |
88
|---|---|---|
99
| 7.4 | main | _EOL_ |
10-
| 8.1 | release/8.1 | |
11-
| 8.2 | | tbd |
10+
| 8.1 | release/8.1 | _EOL_ |
11+
| 8.2 || not available |
12+
| 8.3 | release/8.3 | |
13+
| 8.4 | release/8.4 | current |
14+
15+
## Included Software
16+
17+
### PHP Extensions
18+
19+
| Extension | Notes |
20+
|---|---|
21+
| gd | Image processing with FreeType, JPEG, and WebP support |
22+
| opcache | Bytecode caching for improved performance |
23+
| pdo_mysql | MySQL / MariaDB database driver |
24+
| pdo_pgsql | PostgreSQL database driver |
25+
| zip | ZIP archive support |
26+
| bcmath | Arbitrary precision mathematics |
27+
| redis | Redis client via PECL |
28+
| apcu | In-memory key-value cache via PECL |
29+
30+
### Tools
31+
32+
| Tool | Purpose |
33+
|---|---|
34+
| Composer | PHP dependency manager |
35+
| Drush Launcher | Runs the project-local Drush version |
36+
| git | Version control |
37+
| rsync | File synchronization |
38+
| mariadb-client | Database CLI tools |
39+
| imagemagick | Image conversion and manipulation |
40+
| graphicsmagick | Image conversion and manipulation |
41+
| gifsicle | GIF optimization |
42+
| jpegoptim | JPEG optimization |
43+
| optipng | PNG optimization |
44+
| pngquant | PNG lossy compression |
45+
| pngcrush | PNG lossless compression |
46+
47+
### PHP Configuration
48+
49+
The following defaults are applied on top of the standard PHP-FPM configuration:
50+
51+
| Setting | Value |
52+
|---|---|
53+
| `upload_max_filesize` | 20M |
54+
| `post_max_size` | 20M |
55+
| `memory_limit` | 256M |
56+
| `opcache.memory_consumption` | 128 |
57+
| `opcache.interned_strings_buffer` | 8 |
58+
| `opcache.max_accelerated_files` | 4000 |
59+
| `opcache.revalidate_freq` | 60 |
60+
61+
## Usage
62+
63+
Pull the image from Docker Hub:
64+
65+
```bash
66+
docker pull unicdocker/drupal-php:release-8.4
67+
```
68+
69+
Or use it as a base image in your own `Dockerfile`:
70+
71+
```dockerfile
72+
FROM unicdocker/drupal-php:release-8.4
73+
```
74+
75+
The `latest` tag always points to the most recent build from the `main` branch.
1276

1377
## Build
78+
1479
### Local
1580

16-
You can use your local Docker daemon to build the image. There are no depencencies:
81+
Build the image locally using your Docker daemon. No additional dependencies are required:
1782

1883
```bash
1984
docker build -t unicdocker/drupal-php:latest .
2085
```
86+
87+
### CI/CD
88+
89+
Images are built and published to [Docker Hub](https://hub.docker.com/r/unicdocker/drupal-php) automatically via GitHub Actions whenever changes are pushed to `main` or any `release/**` branch, or when a version tag (`v*.*.*`) is created.

0 commit comments

Comments
 (0)