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.
- Clone the Pilothouse PHP images repository to your system.
- In your
~/.pilothouse/config.yml
file (create it if it doesn't exist), point Pilothouse to your local PHP images with thephp_images_local_path
directive:php_images_local_path: /Users/philip/Dev/pilothouse-php-images
- Run
pilothouse restart
to activate the new configuration and build the PHP images locally. The build process may take quite a while. - Modify the
Dockerfile
s 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. - Once you have made the desired changes to the
Dockerfile
s, build the images by runningpilothouse compose build
followed bypilothouse restart
.