php.dockerfile 579 Bytes
Newer Older
1
ARG PHP_VERSION=7.4.14
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM php:${PHP_VERSION}-fpm-buster

# Update the apt
RUN apt-get update

# Add intl
RUN apt-get install -y \
libicu-dev
RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl

# Add PDO
RUN docker-php-ext-install pdo pdo_mysql

16
# Add ImageMagick
17
RUN apt-get install -y \
18
19
20
    libmagickwand-dev --no-install-recommends \
    && pecl install imagick \
	&& docker-php-ext-enable imagick
21
22
23
24
25

# Add APCu
RUN pecl install apcu && docker-php-ext-enable apcu

# Add OPcache
26
27
28
29
RUN docker-php-ext-install opcache

# Add bcmath
RUN docker-php-ext-install bcmath