PHP 服务构建 Docker 失败

Cra*_*aft 2 docker dockerfile docker-compose

我尝试构建 docker,但出现此错误

configure: error: Package requirements (oniguruma) were not met:

No package 'oniguruma' found

Consider adjusting the `PKG_CONFIG_PATH` environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: Service 'php' failed to build: The command '/bin/sh -c docker-php-ext-install pdo pdo_mysql mysqli mbstring zip gd intl' returned a non-zero code: 1
Run Code Online (Sandbox Code Playgroud)

Nic*_*ond 5

尝试添加libonig-dev到您的系统依赖项,即apt-get install libonig-dev