Dockerfile-basic 3.37 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
            gnupg2 \
23
            libpq-dev \
Evgenii Goryaev's avatar
Evgenii Goryaev committed
24 25
            libz-dev

26
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 11' > /etc/apt/sources.list.d/pgdg.list
Evgenii Goryaev's avatar
Evgenii Goryaev committed
27 28 29

RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8

30
RUN apt-get update && apt-get install -y postgresql-client-11
Evgenii Goryaev's avatar
Evgenii Goryaev committed
31

Evgenii Goryaev's avatar
Evgenii Goryaev committed
32
RUN docker-php-ext-configure gd \
Evgenii Goryaev's avatar
Evgenii Goryaev committed
33 34 35
    --with-webp=/usr/include/ \
    --with-freetype=/usr/include/ \
    --with-jpeg=/usr/include/
Evgenii Goryaev's avatar
Evgenii Goryaev committed
36 37 38 39 40 41 42
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
43 44
RUN docker-php-ext-configure zip

Evgenii Goryaev's avatar
Evgenii Goryaev committed
45 46 47 48 49 50
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
51
RUN docker-php-ext-install pdo_pgsql
Evgenii Goryaev's avatar
Evgenii Goryaev committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
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








Evgenii Goryaev's avatar
Evgenii Goryaev committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149



FROM php:7.3-fpm

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 \
            mariadb-client \
            gnupg2 \
            libpq5 \
            libz-dev

RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 9.5' > /etc/apt/sources.list.d/pgdg.list

RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8

RUN apt-get update && apt-get install -y postgresql-client-9.5

RUN docker-php-ext-configure gd \
    --with-webp-dir=/usr/include/ \
    --with-freetype-dir=/usr/include/ \
    --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install gd

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

RUN docker-php-ext-configure zip \
    --with-libzip
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
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