Sign inSign up

xigen/php

By xigen

•Updated about 4 years ago

Xigen's PHP docker images using official base Alpine images 🐳- https://git.io/fjtn4

Image
0

10K+

xigen/php repository overview

⁠PHP

Xigen's PHP docker images using official base Alpine images 🐳

All images are available on the Docker Hub⁠ with automated public builds configured to pull form this Github Repo⁠. An up-to-date list of tags available use within docker project is available on the Docker Hub⁠. These images are used both in development and production of PHP projects at Xigen⁠.

⁠CLI
⁠FPM
TagDockerfile-
fpm-5 (EOL)Dockerfile-5⁠
fpm-72 (EOL)Dockerfile-72⁠
fpm-73Dockerfile-73⁠
fpm-73Dockerfile-73⁠

⁠Tags

Each of the above tags are built from the Official PHP Docker⁠ images. Some tags are build from other Xigen tags or use Alpine packages to install PHP (such as CLI composer and slim tags) to keep the image size low. All final tags should aim to be built as small as possible and utilize the --quash experimental feature where possible at build time. All required modules should be install into these source images as the source files for PHP are removed to keep image size small.

⁠Building images

Bash scripts have been written to help build all the image tags for the supported PHP version. It is required to compile some tags before others so make sure you use these scripts to build them in the correct order. Simply run bin/build.sh and it will fetch updated base images, build each PHP version and tag them according to version.

./bin/build.sh

⁠Pushing images

To push the locally built images to the Docker hub you need to first have access the Xigen organisation. You will need to first authenticate with the Docker Hub⁠ before you can push new images. Once you have access, use the bin/push.sh bash script to push all image variants to the Docker hub. Then verify the tags have updated here⁠

./bin/push.sh

Tag summary

Content type

Image

Digest

sha256:dc5f82599…

Size

13.4 MB

Last updated

about 4 years ago

docker pull xigen/php:cli-ppm