TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

Missing PDO #180

Closed BloomyInDev closed 2 months ago

BloomyInDev commented 2 months ago

Hey, I've started to use your container but it seems that you don't have installed the optional package php81-pdo so i can't use the PDO class. Can you add it to the container ? Have a good day

BloomyInDev commented 2 months ago

If you want, i can make a pull request to add this

TrafeX commented 2 months ago

Hi @BloomyInDev ,

Thank you for the suggestion. This container is meant as an example which you copy and paste to adjust to your needs. Therefore, it's not a all-in-one solution that has all the PHP extensions and I don't want to add more. You can either extend from this image and install the needed extensions in your own image, or completely copy/paste it.

fermino commented 2 months ago

@BloomyInDev example dockerfile

FROM trafex/php-nginx:latest

USER root
RUN apk add --no-cache php83-pdo_mysql php83-pdo_sqlite # plus whatever other extensions you need

USER nobody
BloomyInDev commented 2 months ago

I already did a clone. It was just if it was intentional or not

Anyway thanks