Cannot create /conf.d/docker-php-ext-pcntl.ini: Directory nonexistent

Readers will probably need to see your config, to see how you are kicking off that extension build.

Also, can you not load a pcntl extension from your upstream distribution repo, rather than compiling it?