When you're running the install command from local machine doesn’t fulfill the platform requirement ext-* but have it in your container then you can run the following which will ignore the platform requirement.
composer install --ignore-platform-reqs