-
|
Hi, There is no clear instruction on how to enable the modules. I have the following: FROM docker.io/nfrastack/nginx-php-fpm:8.4-debian
ENV PHP_MODULE_ENABLE_ZIP=TRUE
# Hereafter composer install is ran and an error is thrown as ext-zip is missingDo I miss something? To be clear, I want to run composer within the build process to make a container that holds all de files for deployment. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi,Moving this to a discussion into Q&A as I feel this is a usage Question. PHP_MODULE_ENABLE_ZIP=TRUE will enable the zip module upon container startup, but during build as you have noticed it will throw errors as it hasn't been able to execute the container initialization scripts. I like to use these commands in sequence before running composer or something that would depend on the modules being readily available and "enabled". I also find that if I am installing more packages or upgrading existing packages that this is useful to run as well.
Your composer should work after that and on container initialization normally those commands are run. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @tiredofit I understand, but I think also that de README.md should be added with this info. Regards |
Beta Was this translation helpful? Give feedback.
Hi,Moving this to a discussion into Q&A as I feel this is a usage Question.
PHP_MODULE_ENABLE_ZIP=TRUE will enable the zip module upon container startup, but during build as you have noticed it will throw errors as it hasn't been able to execute the container initialization scripts.
I like to use these commands in sequence before running composer or something that would depend on the modules being readily available and "enabled". I also find that if I am installing more packages or upgrading existing packages that this is useful to run as well.
php-ext prepare- Looks for stray modules that may have been introduced and move them to their "available" folder and assign module loading priori…