How to install extension for php via docker-php-ext-install?

后端 未结 5 828
再見小時候
再見小時候 2020-12-28 13:40

In order to resolve an issue, I am now trying install the mysql pdo via

docker-php-ext-install

as pointed out in the README of the php imag

5条回答
  •  时光取名叫无心
    2020-12-28 13:52

    RUN docker-php-ext-install mbstring pdo pdo_mysql \
    

    That code can do install any extension you want in this case mysql pdp driver but the Dockerfile should have base of FROM php:7.1.8-apache

提交回复
热议问题