I’m building docker images and during the build, I run composer to install drupal (https://github.com/drupal-composer/drupal-project). As we all know composer uses a lot of memory and I often hit the limit (1.5G):
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
I don’t have a limit on PHP CLI commands (set to -1), so I guess the problem is the docker memory limitation. Is there a way to increase it?