docker-lemp-deno/docker/php/Dockerfile
2022-03-27 18:43:46 +02:00

34 lines
897 B
Docker

FROM php:fpm
RUN apt-get --allow-releaseinfo-change update && apt-get upgrade -y \
&& apt-get install -y \
g++ \
libbz2-dev \
libc-client-dev \
libcurl4-gnutls-dev \
libedit-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libkrb5-dev \
libmcrypt-dev \
libpng-dev \
libsqlite3-dev \
libzip-dev \
wget \
unzip \
zlib1g-dev \
&& docker-php-ext-install -j$(nproc) \
mysqli \
pdo_mysql \
sockets \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip \
&& docker-php-source delete \
&& apt-get remove -y g++ wget \
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/*