Skip to content

FoxyImages/php-build

Repository files navigation

Docker image for running PHP on CI

APT packages added

  • curl
  • git
  • make
  • mysql-client
  • nodejs
  • postgresql-client
  • redis-tools
  • unzip

PHP packages installed

  • bcmath
  • bz2
  • cli
  • curl
  • gd
  • gmp
  • imap
  • intl
  • imagick
  • json
  • mbstring
  • mysql
  • opcache
  • pgsql
  • phpdbg
  • readline
  • redis
  • soap
  • sodium
  • sqlite3
  • xml
  • zip

NPM packages globally installed

  • grunt
  • gulp

Composer packages globally installed

Cache dirs redirected

  • NPM: /cache/npm
  • Composer: /cache/composer

You may want to set /cache dir as Docker image volume for faster CI build.

ENV variables changed/added

  • $PATH: added ~/.composer/vendor/bin
  • $COMPOSER_NO_INTERACTION: set to 1
  • $COMPOSER_ALLOW_SUPERUSER: set to 1

Tags (and PHP version) available for Docker

  • 7.4
  • 8.0
  • 8.1
  • 8.2