{"id":21931477,"url":"https://github.com/nlzet/docker-images","last_synced_at":"2026-02-14T06:30:52.239Z","repository":{"id":83177800,"uuid":"210297920","full_name":"nlzet/docker-images","owner":"nlzet","description":"Docker PHP images for cli, fpm and ci","archived":false,"fork":false,"pushed_at":"2025-02-19T18:12:01.000Z","size":3635,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T03:09:47.416Z","etag":null,"topics":["ci","cli","docker","dockerfile","fpm","php"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/u/nlzet","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlzet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-09-23T08:02:53.000Z","updated_at":"2025-02-19T18:12:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"08c169e4-715c-4d27-a4f8-48106132430e","html_url":"https://github.com/nlzet/docker-images","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nlzet/docker-images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlzet%2Fdocker-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlzet%2Fdocker-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlzet%2Fdocker-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlzet%2Fdocker-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlzet","download_url":"https://codeload.github.com/nlzet/docker-images/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlzet%2Fdocker-images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29438756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T05:24:35.651Z","status":"ssl_error","status_checked_at":"2026-02-14T05:24:34.830Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","cli","docker","dockerfile","fpm","php"],"created_at":"2024-11-28T23:14:03.895Z","updated_at":"2026-02-14T06:30:52.222Z","avatar_url":"https://github.com/nlzet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker PHP images\nThis repository serves as an easy way to configure and build docker PHP images (powered by [docker-php-extension-installer]([https://github.com/mlocati/docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer))) with some extra libraries and tools:\n* `locales`: install extra locales with locale-gen to support internal PHP date localization\n* `optipng  pngcrush  pngquant, jpegoptim, gifsicle, jpegtran` install system tools for image optimization, (usage example [[https://github.com/psliwa/image-optimizer](https://github.com/psliwa/image-optimizer)])\n* `mhsendmail` for local email debugging with mailhog (installed but disabled by default, , can be enabled with ini configuration (cli argument or mounted .ini file)\n* `wkhtmltopdf wkhtmltoimage` for html to pdf/image conversion\n* `nodejs / yarn` (added at stage2, see below)\n* `chromium, symfony server, global node packages, ...` (at stage3, see below)\n* `xdebug` is installed but disabled by default, can be enabled with ini configuration (cli argument or mounted .ini file)\n\n# Available tags\n\n## Default build options\n\n| Tag                                                          | Stage |\n|--------------------------------------------------------------|--|\n\n| [nlzet/php:8.0-cli](https://hub.docker.com/r/nlzet/php/tags) | stage1 |\n| [nlzet/php:8.0-fpm](https://hub.docker.com/r/nlzet/php/tags) | stage2 |\n| [nlzet/php:8.0-ci](https://hub.docker.com/r/nlzet/php/tags)  | stage3 |\n| [nlzet/php:8.1-cli](https://hub.docker.com/r/nlzet/php/tags) | stage1 |\n| [nlzet/php:8.1-fpm](https://hub.docker.com/r/nlzet/php/tags) | stage2 |\n| [nlzet/php:8.1-ci](https://hub.docker.com/r/nlzet/php/tags)  | stage3 |\n| [nlzet/php:8.2-cli](https://hub.docker.com/r/nlzet/php/tags) | stage1 |\n| [nlzet/php:8.2-fpm](https://hub.docker.com/r/nlzet/php/tags) | stage2 |\n| [nlzet/php:8.2-ci](https://hub.docker.com/r/nlzet/php/tags)  | stage3 |\n| [nlzet/php:8.3-cli](https://hub.docker.com/r/nlzet/php/tags) | stage1 |\n| [nlzet/php:8.3-fpm](https://hub.docker.com/r/nlzet/php/tags) | stage2 |\n| [nlzet/php:8.3-ci](https://hub.docker.com/r/nlzet/php/tags)  | stage3 |\n\nAll tags are built weekly (on Thursday) based on the official php `major.minor` php tags (e.g. `php:8.3-fpm`). The following defaults are applied to these builds:\n\n| Option | Value                                                                                                                                            |\n|--|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| PHP_EXTENSIONS | `amqp bcmath bz2 exif ffi gd gettext gmp igbinary imagick intl mcrypt mysqli pcntl pdo_mysql pdo_pgsql redis sockets soap xdebug xmlrpc xsl zip` |\n| FROM_IMAGE | `php:${PHP_VERSION}-fpm`                                                                                                                         |\n  \n# Building your own image  \n\nYou can build your own image with your own set of php extensions and configuration options.\nAvailable options and information are described below:\n\n## Configuration options:  \n  \n### Build options\n\n| Variable | Description                                                                                                                                                                                                                                     | Default                                                                                                                                                  | \n|--|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n|PHP_VERSION| Choose the PHP version, you can select major, minor and patch version. E.g. `8`, `8.3` or `8.3.10`                                                                                                                                              |                                                                                                                                                          |\n|PHP_EXTENSIONS| Choose the PHP extensions to install, select supported extensions from [https://github.com/mlocati/docker-php-extension-installer#supported-php-extensions](https://github.com/mlocati/docker-php-extension-installer#supported-php-extensions) |                                                                                                                                                          |\n|LOCALEGEN| String containing the locales to install, seperated by `\\n`                                                                                                                                                                                     | `en_US.UTF-8 UTF-8\\nnl_NL.UTF-8 UTF-8\\nnl_BE.UTF-8 UTF-8\\nfr_FR.UTF-8 UTF-8\\nde_DE.UTF-8 UTF-8\\nes_ES.UTF-8 UTF-8\\nit_IT.UTF-8 UTF-8\\nsv_SE.UTF-8 UTF-8` |\n|UID| www user id                                                                                                                                                                                                                                     | `1000`                                                                                                                                                   |\n|GID| www group id                                                                                                                                                                                                                                    | `1000`                                                                                                                                                   |\n|NODE_MAJOR| nodejs major version                                                                                                                                                                                                                            | `20`                                                                                                                                                     |\n\n### Auto-generated options\n\n| Variable | Description | Default | \n|--|--|--|\n|FROM_IMAGE|Tag from the official PHP base images to base on (choose a `-fpm` suffix to support it in all multistage builds) | `php:${PHP_VERSION}-fpm`|\n\n### Multistage build targets\n\n| Docker stage | Description | Entrypoint |\n|--|--|--| \n| builder | build-/download external dependencies from source like image optim libraries or mhsendmail | default |\n| composer | composer multistage to export composer binary | default |\n| extensions | base image, builds requested PHP extensions and configures image optim packages | default |\n| stage1 | cli image with entrypoint php bin and install locales | php bin |\n| stage2 | fpm image with entrypoint fpm and add nodejs and yarn | fpm bin |\n| stage3 | ci image for CI e2e testing | php bin |\n  \n### Example build:\n\n    docker build \\\n\t    --build-arg PHP_EXTENSIONS=\"gd xdebug\" \\\n\t    --build-arg PHP_VERSION=8.3 \\\n\t    --target stage1 \\\n\t    php/ \\\n\t    --pull\n\n# Using the image\n\n## CLI\n\n### Check PHP configuration:\n\n    # get version\n    docker run -it nlzet/php:8.3-cli php -v\n    \n    # list configured modules\n    docker run -it nlzet/php:8.3-cli php -m\n    \n    # list configured ini files\n    docker run -it nlzet/php:8.3-cli php --ini\n    \n### Enable Xdebug:\n    \n    # command line argument\n    docker run -it nlzet/php:8.3-cli php -d zend_extension=xdebug.so -v\n    \n    # or with a mounted .ini file, containing \"zend_extension=xdebug.so\"\n    docker run -v $(pwd)/xdebug.ini:/usr/local/etc/php/conf.d/99-enable-xdebug.ini -it nlzet/php:8.3-cli php -v\n    \n## FPM:\n    \n    # start fpm container, wich will directly start php-fpm\n    docker run -it nlzet/php:8.3-fpm    \n\n## Docker pull all:\n\n    versions=(8.1 8.2 8.3)\n    tags=(ci fpm cli)\n\n    for version in $versions\n    do\n        for tag in $tags\n        do\n            echo \"pulling nlzet/php:$version-$tag\"\n            docker pull nlzet/php:$version-$tag\n        done\n    done\n\n# Check composer / php versions\n\n    versions=(8.1 8.2 8.3)\n    tags=(ci fpm cli)\n\n    for version in $versions\n    do\n        for tag in $tags\n        do\n            echo \"checking versions for nlzet/php:$version-$tag\"\n            cmd='$(php -v | head -n 1) - $(composer --version)'\n            docker run -it nlzet/php:$version-$tag bash -c \"echo $(echo $cmd)\"\n        done\n    done\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlzet%2Fdocker-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlzet%2Fdocker-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlzet%2Fdocker-images/lists"}