composer / docker

Composer in Docker

Home Page:https://hub.docker.com/_/composer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getting php dependency on composer image

bathivinod opened this issue · comments

using image: composer:2.1
executed command: composer install

error:

+ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
  Problem 1
    - phpoffice/phpspreadsheet is locked to version 1.29.0 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.29.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
  Problem 2
    - phpoffice/phpspreadsheet 1.29.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
    - maatwebsite/excel 3.1.48 requires phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.29.0].
    - maatwebsite/excel is locked to version 3.1.48 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
    - /usr/local/etc/php/php-cli.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-bz2.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Capture

Is there a way to resolve the above errors on the composer image