How to Add Custom PHP Packages - Pilothouse-App/Pilothouse GitHub Wiki

To add additional PHP packages, you'll need to build the PHP Docker images locally and direct Pilothouse to use them instead of the images from Docker Cloud.

  1. Clone the Pilothouse PHP images repository to your system.
  2. In your ~/.pilothouse/config.yml file (create it if it doesn't exist), point Pilothouse to your local PHP images with the php_images_local_path directive:
    php_images_local_path: /Users/philip/Dev/pilothouse-php-images
    
  3. Run pilothouse restart to activate the new configuration and build the PHP images locally. The build process may take quite a while.
  4. Modify the Dockerfiles in each PHP version directory to add whatever packages you need. You may fork the repository if you want to keep your changes in version control. Note that the PHP images are built on an Alpine Linux base, so the process of adding PHP packages may be different from what you are used to.
  5. Once you have made the desired changes to the Dockerfiles, build the images by running pilothouse compose build followed by pilothouse restart.