mirror of
https://github.com/ivuorinen/docker-php-with-imagick-multi.git
synced 2026-01-26 11:34:03 +00:00
41 lines
1.0 KiB
Docker
41 lines
1.0 KiB
Docker
# vim: set ft=dockerfile ts=2 sw=2 sts=2 et:
|
|
FROM php:8.5@sha256:40bb9e411d6f8b852365c56ce3bb665a4e58d37f3165db0a6d7139b8523affe2
|
|
|
|
LABEL \
|
|
maintainer="Ismo Vuorinen <ismo@ivuorinen.net>" \
|
|
version="1.0" \
|
|
description="PHP 7.4 with Imagick and Composer"
|
|
|
|
# Install PHP extensions and required libraries
|
|
RUN \
|
|
apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
libicu-dev \
|
|
libxml2-dev \
|
|
libfreetype6-dev \
|
|
libjpeg62-turbo-dev \
|
|
libpng-dev \
|
|
libonig-dev \
|
|
libmagickwand-dev \
|
|
python3-dev \
|
|
unzip \
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
|
&& docker-php-ext-install -j$(nproc) \
|
|
bcmath \
|
|
intl \
|
|
mbstring \
|
|
pdo \
|
|
xml \
|
|
gd \
|
|
exif \
|
|
&& docker-php-ext-configure pcntl \
|
|
&& docker-php-ext-install pcntl \
|
|
&& yes '' | pecl install imagick \
|
|
&& docker-php-ext-enable imagick \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& curl -sS https://getcomposer.org/installer | \
|
|
php -- --install-dir=/usr/local/bin --filename=composer \
|
|
&& php --version \
|
|
&& composer --version
|