I am having a similar problem. No errors reported during build, but when I check the container the module is not listed (php -m) and there’s not extension config file in php.d. I am using a different repo, polinux/httpd:centos. What’s really odd is that I can install it manually after starting the container, but then I can’t restart apache without restarting the container.
I’ve tried moving yum install php71-php-pgsql to the end of the Dockerfile as a separate RUN command, but it reports it has already been installed, yet when I ssh into the container its not listed.
Did you ever figure this out?
Thanks.