39 lines
981 B
Docker
39 lines
981 B
Docker
FROM php:8.1-fpm
|
|
|
|
RUN apt-get update; \
|
|
apt-get install -y libmagickwand-dev; \
|
|
pecl install imagick; \
|
|
docker-php-ext-enable imagick; \
|
|
true
|
|
|
|
RUN apt-get install -y \
|
|
libicu-dev \
|
|
curl \
|
|
wget \
|
|
git \
|
|
mc \
|
|
libfreetype6-dev \
|
|
libjpeg62-turbo-dev \
|
|
libpng-dev \
|
|
libonig-dev \
|
|
libzip-dev \
|
|
libmcrypt-dev \
|
|
libgmp-dev \
|
|
default-jre \
|
|
&& docker-php-ext-install gd \
|
|
&& docker-php-ext-install gmp \
|
|
&& docker-php-ext-configure intl \
|
|
&& docker-php-ext-install intl \
|
|
&& pecl update-channels && pecl install mcrypt && docker-php-ext-enable mcrypt \
|
|
&& docker-php-ext-install -j$(nproc) iconv mbstring mysqli pdo_mysql zip
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
ADD php.ini /usr/local/etc/php/conf.d/40-custom.ini
|
|
|
|
WORKDIR /var/www/
|
|
|
|
ENV TZ="Europe/Moscow"
|
|
|
|
CMD ["php-fpm"]
|