Also, you even don not need Dockerfile for php container!
If you run:
docker run --rm php:7.2-fpm-alpine php -m | grep -i pdo
you can see that php modules already exists:
my bad, pdo_mysql do not exists on this image, unfortunately you should write Dockerfile if you want database access :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.