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:
PDO pdo_sqlite
my bad, pdo_mysql do not exists on this image, unfortunately you should write Dockerfile if you want database access :)
pdo_mysql
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also, you even don not need Dockerfile for php container!
If you run:
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 :)