Created
March 9, 2023 10:38
-
-
Save souhaiebtar/3886a1f08b86bac285b1173432074479 to your computer and use it in GitHub Desktop.
[php fpm image WIP] php fpm image #fpm #php #docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.3.33-fpm-bullseye | |
COPY libenchant1c2a_1.6.0-11.1+b1_amd64.deb libenchant-dev_1.6.0-11.1+b1_amd64.deb /tmp/ | |
RUN apt-get update && apt-get install -y unixodbc-dev libpng-dev libgmp-dev libicu-dev libldap2-dev libpq-dev libpspell-dev \ | |
libsnmp-dev libxml2-dev libtidy-dev libxslt1-dev libzip-dev libbz2-dev librecode-dev \ | |
&& apt install -y -f /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb && apt install -y -f /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \ | |
&& rm -f /tmp/libenchant1c2a_1.6.0-11.1+b1_amd64.deb /tmp/libenchant-dev_1.6.0-11.1+b1_amd64.deb \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \ | |
&& docker-php-ext-install pdo_odbc \ | |
&& 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 \ | |
&& pecl install apcu \ | |
&& docker-php-ext-enable apcu \ | |
&& pecl clear-cache \ | |
&& docker-php-ext-install bcmath bz2 calendar dba exif gd gettext gmp intl ldap mysqli pcntl pdo_mysql pdo_pgsql pgsql pspell \ | |
recode shmop snmp soap sockets sysvmsg sysvsem sysvshm tidy wddx xmlrpc xsl zip opcache enchant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment