Add PHP extension on initial container startup possible? #261
-
|
Hey, thanks for your solutions! I have an application that needs soap, so I ran Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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 I hope this mechanism can be helpful in your case. |
Beta Was this translation helpful? Give feedback.
In any case, depending on the situation, using
/startup/might be a better choice since it's documented and can be controlled via environment variables.