mirror of
https://github.com/ivuorinen/docker-php-with-imagick.git
synced 2026-01-26 11:34:08 +00:00
18 lines
697 B
Docker
18 lines
697 B
Docker
FROM php:7.4
|
|
|
|
RUN docker-php-ext-install bcmath \
|
|
&& docker-php-ext-configure pcntl \
|
|
&& docker-php-ext-install pcntl \
|
|
&& apt-get update \
|
|
&& apt-get install -y \
|
|
libicu-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev \
|
|
libpng-dev libonig-dev libmagickwand-dev python-dev unzip \
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
|
&& docker-php-ext-install -j$(nproc) intl mbstring pdo xml gd exif bcmath \
|
|
&& yes '' | pecl install imagick \
|
|
&& docker-php-ext-enable imagick \
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
RUN php --version \
|
|
&& composer --version
|