DEV Community

Discussion on: The beauty of Docker for local Laravel development

Collapse
 
fotonmoton profile image
Gregory

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

Enter fullscreen mode Exit fullscreen mode

you can see that php modules already exists:

PDO
pdo_sqlite
Enter fullscreen mode Exit fullscreen mode
Collapse
 
fotonmoton profile image
Gregory

my bad, pdo_mysql do not exists on this image, unfortunately you should write Dockerfile if you want database access :)