I build my symfony 4 application with composer install inside docker container.
Composer version 1.10.19
But i got this error.
[ErrorException] file_put_contents(/root/.composer/cache/repo/https---flex.symfony.com/): failed to open stream: Is a directory
If i run composer install 1 more time without any interruption build is succeeded.
If i delete vendor and var/cache directory on project directory error accoured again.
I tried this methods:
- trigger 'composer clearcache' command no success
- Delete ~/.composer directory no success
- chmod -R 777 ~/.composer no success
Some build of the same project inside different container is succeeded. My container starts with this volumes:
project directory
~/.ssh directory
I search across net but got no solution. PLease help.
COMPOSER_MEMORY_LIMIT=-1 composer update
? – Bunioncomposer install --no-cache ...
Or if you can update flex, it will solve the problem according to Symfony's creator : github.com/symfony/flex/issues/780 – Kibitka