re: The beauty of Docker for local Laravel development VIEW POST

FULL DISCUSSION
 

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 :)

code of conduct - report abuse