I try to build Magento 2.4.5 with php 8.1 docker on premises environment and I followed the process described here https://devdocs.magento.com/cloud/docker/docker-installation.html.
I ended up with error:
Cannot decode string: list indices must be integers or slices, not str ERROR: 1
Below are the exact steps I followed with the exact commands:
Created project using composer
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.5 magento-community-edition
Change to directory magento-community-edition
Add the ece-tools and Cloud Docker for Commerce packages.
composer require --no-update --dev magento/ece-tools magento/magento-cloud-docker
Install ece tools and cloud docker with composer
I ran the Docker configuration generator and created docker-compose.yml
./vendor/bin/ece-docker build:compose --mode=production --php=8.1 --db=10.3
Created and started containers
Run build hooks
At this step after it run installing various composer dependencies if fails with error:
Running "build" hook. Cannot decode string: list indices must be integers or slices, not str ERROR: 1
Any assistance is appreciated.