PHP image build for Debian maintained PHP versions and some rolling release based on Sury (https://deb.sury.org/):
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.
All variables are optional but will override the PHP FPM pool configuration:
Content type
Image
Digest
Size
79.9 MB
Last updated
over 4 years ago
docker pull bearstech/php