Sign inSign up

dolphiq/dqx-php84-debian-slim

By dolphiq

•Updated about 4 hours ago

PHP 8.4.27 Debian 13 (trixie) slim for Laravel dev/CI

Image
0

169

dolphiq/dqx-php84-debian-slim repository overview

⁠dolphiq/dqx-php84-debian-slim

PHP 8.4.27 on Debian 13 (trixie), slim flavour: a Laravel development and CI image by Dolphiq, used by dqx.

⁠Tags

TagMoves when
:X.Y.Znever
:X.YPHP, MySQL client, npm and tool patches; same distro and Node major
:Xalso Node majors, distro minors and added extensions
:latestevery release; for trying out only

Pin :X.Y in projects, currently dolphiq/dqx-php84-debian-slim:0.1 (0.1.0).

⁠Use

# docker-compose.yml
services:
  app:
    image: dolphiq/dqx-php84-debian-slim:0.1
    environment:
      XDEBUG_MODE: debug
# bitbucket-pipelines.yml
image: dolphiq/dqx-php84-debian-slim:0.1

⁠Contents

ComponentVersion
PHP8.4.27
Node.js + npm24.22.1
Composer2.10.3
MySQL client (mysql, mysqldump)8.4.13
git2.56.0
npm protectionAikido safe-chain (npm, npx run through it)
Shellbash

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.

⁠Environment

Every setting is an environment variable, so projects override it in environment: instead of mounting ini files.

VariableDefaultSets
XDEBUG_MODEoffXdebug mode, e.g. debug, coverage, debug,coverage
PHP_PCOV_ENABLED01 turns pcov coverage on
PHP_MEMORY_LIMIT512Mmemory_limit
PHP_UPLOAD_MAX_FILESIZE64Mupload_max_filesize
PHP_POST_MAX_SIZE64Mpost_max_size
PHP_MAX_EXECUTION_TIME300max_execution_time
PHP_DATE_TIMEZONEUTCdate.timezone
PHP_OPCACHE_ENABLE1opcache.enable (timestamps are always validated)
TZUTCsystem timezone

The image runs as root in /var/www, uses php.ini-development, and has no HEALTHCHECK (compose or dqx defines one).

⁠Extend

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-debian-slim:0.1

RUN apt-get update \
    && apt-get install -y --no-install-recommends $PHPIZE_DEPS \
    && docker-php-ext-install calendar \
    && apt-get purge -y --auto-remove $PHPIZE_DEPS \
    && rm -rf /var/lib/apt/lists/*

⁠Changelog

⁠0.1.0
  • minor: Initial pilot release

Full history, sources and the other images: https://bitbucket.org/dq-private/dqx-docker-images-php⁠ (releases/php84-debian-slim/CHANGELOG.md).

Tag summary

Content type

Image

Digest

sha256:adb6ed8db…

Size

141.4 MB

Last updated

about 4 hours ago

docker pull dolphiq/dqx-php84-debian-slim