当前行为
docker build -t flarum-custom .
结果在composer install出错
Step 7/7 : RUN composer install
---> Running in 073377aa06d3
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
- aws/aws-sdk-php is locked to version 3.214.0 and an update of this package was not requested.
- aws/aws-sdk-php 3.214.0 requires ext-simplexml * -> it is missing from your system. Install or enable PHP's simplexml extension.
Problem 2
- aws/aws-sdk-php 3.214.0 requires ext-simplexml * -> it is missing from your system. Install or enable PHP's simplexml extension.
- league/flysystem-aws-s3-v3 1.0.29 requires aws/aws-sdk-php ^3.20.0 -> satisfiable by aws/aws-sdk-php[3.214.0].
- league/flysystem-aws-s3-v3 is locked to version 1.0.29 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php8/php.ini
- /etc/php8/conf.d/00_ctype.ini
- /etc/php8/conf.d/00_curl.ini
- /etc/php8/conf.d/00_dom.ini
- /etc/php8/conf.d/00_fileinfo.ini
- /etc/php8/conf.d/00_gd.ini
- /etc/php8/conf.d/00_gmp.ini
- /etc/php8/conf.d/00_iconv.ini
- /etc/php8/conf.d/00_intl.ini
- /etc/php8/conf.d/00_mbstring.ini
- /etc/php8/conf.d/00_opcache.ini
- /etc/php8/conf.d/00_openssl.ini
- /etc/php8/conf.d/00_pdo.ini
- /etc/php8/conf.d/00_session.ini
- /etc/php8/conf.d/00_tokenizer.ini
- /etc/php8/conf.d/00_xmlwriter.ini
- /etc/php8/conf.d/00_zip.ini
- /etc/php8/conf.d/01_exif.ini
- /etc/php8/conf.d/01_mysqlnd.ini
- /etc/php8/conf.d/01_phar.ini
- /etc/php8/conf.d/02_pdo_mysql.ini
- /etc/php8/conf.d/apcu.ini
- /etc/php8/conf.d/www.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-simplexml --ignore-platform-req=ext-simplexml` to temporarily ignore these required extensions.
The command '/bin/sh -c composer install' returned a non-zero code: 2
预期行为
顺利创建容器
复现步骤
git checkout dev
./build-docker.sh
平台信息
其他
浏览器信息
其他
用户状态信息
未登录
补充信息
环境
···
uname -a [0:30:01]
Linux ecnu5-MS-7A95 5.4.0-90-generic #101~18.04.1-Ubuntu SMP Fri Oct 22 09:25:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
docker-compose --version
docker-compose version 1.27.4, build 40524192
···
看这个信息可能原始镜像没有足够依赖,需要有php经验的大佬进一步确认
bug