Sign inSign up

helioao/php

By helioao

•Updated 5 days ago

Base php image for my projects

Image
0

1.2K

helioao/php repository overview

⁠helioao/php

Base image (PHP 8.4 + nginx + php-fpm, from shinsenter/phpfpm-nginx) used by sicon, siamu, vc and backstop APIs.

⁠Rebuild after a PHP security release

  1. Get the new base digest and check PHP and Debian versions:
    sudo docker buildx imagetools inspect shinsenter/phpfpm-nginx:php8.4 | grep -m1 Digest
    sudo docker run --rm --pull always --entrypoint sh shinsenter/phpfpm-nginx:php8.4 -c 'php -v | head -1; . /etc/os-release; echo $VERSION_CODENAME'
    
  2. Update the FROM ...@sha256: digest (and the comment) in Dockerfile. If the Debian codename changed, check downstream Dockerfiles that add apt repos.
  3. Build and push multi-arch (needs docker login as helioao in ~/.docker and binfmt for amd64):
    sudo DOCKER_CONFIG=$HOME/.docker docker buildx build --builder multi2 \
      --platform linux/amd64,linux/arm64 \
      -t helioao/php:latest -t helioao/php:<php-version> --push .
    sudo chown -R "$USER:$USER" ~/.docker
    
  4. Redeploy the dependent apps in Coolify with force rebuild.

Tag summary

Content type

Image

Digest

sha256:2872f0d3f…

Size

302.3 MB

Last updated

5 days ago

docker pull helioao/php