chrisleekr / yii2-angular-boilerplate

Yii2 REST API + Angular 12 Boilerplate (Frontend/Backend)

Home Page:https://yam-boilerplate.chrislee.kr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: Service 'api' failed to build:

rohitsuthar opened this issue · comments

failed01

I'm getting the below error, please help me to resolve this -

ERROR: Service 'api' failed to build: The command '/bin/sh -c curl -sS https://getcomposer.org/installer | php -- --filename=composer.phar --install-dir=/usr/local/bin && composer global require --optimize-autoloader "fxp/composer-asset-plugin:${VERSION_COMPOSER_ASSET_PLUGIN}" "hirak/prestissimo:${VERSION_PRESTISSIMO_PLUGIN}" && composer global dumpautoload --optimize && composer clear-cache' returned a non-zero code: 127

Hi @rohitsuthar

Unfortunately, I do not have Windows machine at home.
So it is hard me to find the solution for you.

I think others also have same issue with you.
If you can find the solution, please share to help others as well.

hi , my friends
in windows for docker commands use powershell

I am getting the same error
Docker version 17.12.0-ce, build c97c6d6
Windows 10
Powershell run as admin

Seems like it can be resolved by the
git config --global core.autocrlf false command
before git clone ... and docker-compose build