Dockerfile-basic 1.45 KB
Newer Older
Evgenii Goryaev's avatar
Evgenii Goryaev committed
1
FROM php:7.4-fpm
Evgenii Goryaev's avatar
Evgenii Goryaev committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

RUN apt-get update
RUN apt-get install -y \
            git \
            libzip-dev \
            libc-client-dev \
            libkrb5-dev \
            libpng-dev \
            libjpeg-dev \
            libwebp-dev \
            libfreetype6-dev \
            libkrb5-dev \
            libicu-dev \
            zlib1g-dev \
            zip \
            ffmpeg \
            libmemcached11 \
            libmemcachedutil2 \
            build-essential \
            libmemcached-dev \
Evgenii Goryaev's avatar
Evgenii Goryaev committed
22
            mariadb-client \
Evgenii Goryaev's avatar
Evgenii Goryaev committed
23
            gnupg2 \
24
            libpq-dev \
Evgenii Goryaev's avatar
Evgenii Goryaev committed
25 26
            libz-dev \
            postgresql-client-11
Evgenii Goryaev's avatar
Evgenii Goryaev committed
27

Evgenii Goryaev's avatar
Evgenii Goryaev committed
28
RUN docker-php-ext-configure gd \
Evgenii Goryaev's avatar
Evgenii Goryaev committed
29 30 31
    --with-webp=/usr/include/ \
    --with-freetype=/usr/include/ \
    --with-jpeg=/usr/include/
Evgenii Goryaev's avatar
Evgenii Goryaev committed
32 33 34 35 36 37 38
RUN docker-php-ext-install gd

RUN docker-php-ext-configure imap \
    --with-kerberos \
    --with-imap-ssl
RUN docker-php-ext-install imap

Evgenii Goryaev's avatar
Evgenii Goryaev committed
39 40
RUN docker-php-ext-configure zip

Evgenii Goryaev's avatar
Evgenii Goryaev committed
41 42 43 44 45 46
RUN docker-php-ext-install zip

RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl

RUN docker-php-ext-install pdo_mysql
47
RUN docker-php-ext-install pdo_pgsql
Evgenii Goryaev's avatar
Evgenii Goryaev committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61
RUN docker-php-ext-install exif
RUN docker-php-ext-install fileinfo

RUN pecl install xdebug

RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN pecl install memcached

RUN echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini

ENV COMPOSER_ALLOW_SUPERUSER 1

WORKDIR /app