Sign inSign up

bearstech/php

By bearstech

•Updated about 18 hours ago

PHP docker images by bearstech

Image
0

10K+

bearstech/php repository overview

PHP image build for Debian maintained PHP versions and some rolling release based on Sury (https://deb.sury.org/⁠):

  • 7.3 (buster)
  • 7.4 (bullseye)
  • 8.2 (bookworm)
  • 8.x-rr (bookworm + Sury)

⁠Usage

Build your image based on bearstech/php with a user creation :

FROM bearstech/php:8.2
ARG UID=1001
RUN useradd php-worker --uid ${UID} --shell /bin/bash
USER php-worker

Note the UID passed as build argument (--build-arg UID=id -u) for volumes/permissions purpose.

Scripts can be added in /entrypoint.d/, they will be executed with run-parts by entrypoint.

⁠Variables

All variables are optional but will override the PHP FPM pool configuration:

  • WORKERS: nombre de workers PHP (pm.max_children)
  • MAX_SPARE_SERVERS: nombre de spare servers PHP (pm.max_spare_servers)
  • START_SERVERS: nombre de server PHP (pm.start_servers)
  • SLOWLOGTIMEOUT: PHP request slowlog timeout (request_slowlog_timeout)
  • TIMEOUT: request timeout (request_terminate_timeout)
  • MEMORYLIMIT: PHP memory limit (php_admin_value[memory_limit])
  • USER: User ID (user)

Tag summary

Content type

Image

Digest

Size

79.9 MB

Last updated

over 4 years ago

docker pull bearstech/php