ember-nexus / api

Knowledge Graph API
https://ember-nexus.github.io/api
GNU Affero General Public License v3.0
9 stars 1 forks source link

Fix Docker build on ARM #259

Closed Syndesi closed 4 months ago

Syndesi commented 4 months ago

The Dockerfile contains the step RUN APP_ENV=prod composer install --no-dev --optimize-autoloader, which worked fine before on AMD & ARM, but now crashes on ARM only.

The command output is the following:

...
#42 2.759 Generating optimized autoload files
#42 3.659 51 packages you are using are looking for funding.
#42 3.659 Use the `composer fund` command to find out more!
#42 3.675 > symfony-cmd
#42 3.676 sh: symfony-cmd: not found
#42 3.677 Script symfony-cmd handling the auto-scripts event returned with error code 127
#42 3.677 Script @auto-scripts was called via post-install-cmd
#42 3.677 Plugins have been disabled automatically as you are running as root, this may be the cause of the script failure.
#42 3.677 See also https://getcomposer.org/root
#42 ERROR: process "/bin/sh -c APP_ENV=prod composer install --no-dev --optimize-autoloader" did not complete successfully: exit code: 127
------
 > [production-build 10/10] RUN APP_ENV=prod composer install --no-dev --optimize-autoloader:
2.673  78/78 [============================] 100%
2.759 Generating optimized autoload files
3.659 51 packages you are using are looking for funding.
3.659 Use the `composer fund` command to find out more!
3.675 > symfony-cmd
3.676 sh: symfony-cmd: not found
3.677 Script symfony-cmd handling the auto-scripts event returned with error code 127
3.677 Script @auto-scripts was called via post-install-cmd
3.677 Plugins have been disabled automatically as you are running as root, this may be the cause of the script failure.
3.677 See also https://getcomposer.org/root
------
Dockerfile:331
--------------------
 329 |     COPY composer.lock /var/www/html/composer.lock
 330 |     COPY LICENSE /var/www/html/LICENSE
 331 | >>> RUN APP_ENV=prod composer install --no-dev --optimize-autoloader
 332 |     
 333 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c APP_ENV=prod composer install --no-dev --optimize-autoloader" did not complete successfully: exit code: 127
Error: Process completed with exit code 1.