mirror of
https://github.com/ivuorinen/docker-php-with-imagick.git
synced 2026-01-26 11:34:08 +00:00
Fix: Tweaks & clean apt-get lists
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,20 +1,21 @@
|
||||
FROM php:7.4
|
||||
|
||||
RUN docker-php-ext-install bcmath \
|
||||
RUN echo "" \
|
||||
&& 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 \
|
||||
libicu-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev \
|
||||
libpng-dev libonig-dev libmagickwand-dev python-dev unzip \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& 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 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
| php -- --install-dir=/usr/local/bin --filename=composer
|
||||
RUN php --version \
|
||||
&& composer --version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user