PHP 8.4.27 Alpine 3.24 slim for Laravel dev/CI
140
PHP 8.4.27 on Alpine 3.24, slim flavour: a Laravel development and CI image by Dolphiq, used by dqx.
| Tag | Moves when |
|---|---|
:X.Y.Z | never |
:X.Y | PHP, MySQL client, npm and tool patches; same distro and Node major |
:X | also Node majors, distro minors and added extensions |
:latest | every release; for trying out only |
Pin :X.Y in projects, currently dolphiq/dqx-php84-alpine-slim:0.1 (0.1.0).
# docker-compose.yml
services:
app:
image: dolphiq/dqx-php84-alpine-slim:0.1
environment:
XDEBUG_MODE: debug
# bitbucket-pipelines.yml
image: dolphiq/dqx-php84-alpine-slim:0.1
| Component | Version |
|---|---|
| PHP | 8.4.27 |
| Node.js + npm | 24 (Alpine 3.24 nodejs) |
| Composer | 2.10.3 |
| MySQL client (mysql, mysqldump) | 8.4.13 |
| git | Alpine 3.24 package |
| npm protection | Aikido safe-chain (npm, npx run through it) |
| Shell | bash |
PHP extensions added to the official image: bcmath, exif, gd, igbinary 3.2.16, intl, mbstring, msgpack 3.0.1, mysqli, pcntl, pcov 1.0.12, pdo_mysql, redis 6.3.0, sockets, xdebug 3.5.3, zend opcache, zip.
/etc/dqx-image.json in the image lists the exact versions it was built with.
Every setting is an environment variable, so projects override it in environment: instead of mounting ini files.
| Variable | Default | Sets |
|---|---|---|
XDEBUG_MODE | off | Xdebug mode, e.g. debug, coverage, debug,coverage |
PHP_PCOV_ENABLED | 0 | 1 turns pcov coverage on |
PHP_MEMORY_LIMIT | 512M | memory_limit |
PHP_UPLOAD_MAX_FILESIZE | 64M | upload_max_filesize |
PHP_POST_MAX_SIZE | 64M | post_max_size |
PHP_MAX_EXECUTION_TIME | 300 | max_execution_time |
PHP_DATE_TIMEZONE | UTC | date.timezone |
PHP_OPCACHE_ENABLE | 1 | opcache.enable (timestamps are always validated) |
TZ | UTC | system timezone |
The image runs as root in /var/www, uses php.ini-development, and has no HEALTHCHECK (compose or dqx defines one).
Project-specific needs go into a project Dockerfile on top of this image. Install the build tools, compile and remove them in one RUN; add the runtime libraries an extension needs (for example libldap for ldap):
FROM dolphiq/dqx-php84-alpine-slim:0.1
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
&& docker-php-ext-install calendar \
&& apk del .build-deps
Full history, sources and the other images: https://bitbucket.org/dq-private/dqx-docker-images-php (releases/php84-alpine-slim/CHANGELOG.md).
Content type
Image
Digest
sha256:d251ade59…
Size
91 MB
Last updated
about 4 hours ago
docker pull dolphiq/dqx-php84-alpine-slim