mirror of
https://github.com/ivuorinen/docker-php-with-imagick.git
synced 2026-02-08 09:46:27 +00:00
Create Dockerfile
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user