php odbc
發表於 : 2018-05-28 10:03:10
https://github.com/docker-library/php/issues/103
代碼: 選擇全部
RUN apt-get update \
&& apt-get install unzip git unixODBC-dev libpq-dev -y
RUN set -x \
&& docker-php-source extract \
&& cd /usr/src/php/ext/odbc \
&& phpize \
&& sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure \
&& ./configure --with-unixODBC=shared,/usr \
&& docker-php-ext-install odbc \
&& docker-php-source delete