You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add PHP extension on initial container startup possible? #260
I have an application that needs soap, so I ran phpaddmod via console, which worked. However, is there any way to tell the container to install a php-mod, if its not already installed? soap is not shipped by default and I dont want to create a new image just for that one extension. A ENV option for that would be awesome, I think?
Hi there! I understand your project needs the SOAP extension, which unfortunately isn't available by default.
At the moment, there's no way to install the extension automatically without rebuilding the Docker image.
That said, I wouldn't really recommend doing so, as it could slow down your deployments, affect CI/CD processes or health checks, and might even lead to unnecessary costs for container services.
Activity
shinsenter commentedon Jul 18, 2025
@Commifreak
Hi there! I understand your project needs the SOAP extension, which unfortunately isn't available by default.
At the moment, there's no way to install the extension automatically without rebuilding the Docker image.
That said, I wouldn't really recommend doing so, as it could slow down your deployments, affect CI/CD processes or health checks, and might even lead to unnecessary costs for container services.
shinsenter commentedon Jul 18, 2025
@Commifreak
However, the Docker images I provide include a mechanism called “hooks”, which isn't documented.
You can mount a script file to install SOAP at the path
/etc/hooks/onboot/, for example:/etc/hooks/onboot/install-soap.I hope this mechanism can be helpful in your case.