Sign inSign up

dolphiq/dqx-php85-alpine-slim

By dolphiq

•Updated about 3 hours ago

PHP 8.5.12 Alpine 3.24 slim for Laravel dev/CI

Image
0

148

dolphiq/dqx-php85-alpine-slim repository overview

⁠dolphiq/dqx-php85-alpine-slim

PHP 8.5.12 on Alpine 3.24, 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-php85-alpine-slim:0.1 (0.1.0).

⁠Use

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

⁠Contents

ComponentVersion
PHP8.5.12
Node.js + npm24 (Alpine 3.24 nodejs)
Composer2.10.3
MySQL client (mysql, mysqldump)8.4.13
gitAlpine 3.24 package
npm protectionAikido safe-chain (npm, npx run through it)
Shellbash

PHP extensions added to the official image: bcmath, exif, gd, igbinary 3.2.17RC1, 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-php85-alpine-slim:0.1

RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
    && docker-php-ext-install calendar \
    && apk del .build-deps

⁠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/php85-alpine-slim/CHANGELOG.md).

Tag summary

Content type

Image

Digest

sha256:a313f3d41…

Size

93.1 MB

Last updated

about 3 hours ago

docker pull dolphiq/dqx-php85-alpine-slim