-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.48 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM php:7.3-fpm
MAINTAINER Nicolas Thal <[email protected]>
MAINTAINER Jérémy GIGNON <[email protected]>
#COPY config/php.ini /usr/local/etc/php/
RUN pecl install redis \
&& docker-php-ext-enable redis
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
zlib1g-dev libicu-dev g++ \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_mysql pdo_pgsql mbstring pgsql \
&& docker-php-ext-install xml soap zip \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl
RUN docker-php-ext-install opcache
ADD config/symfony.ini /etc/php/7.3/fpm/conf.d/
ADD config/memory.ini /usr/local/etc/php/conf.d/
ADD config/adback.co.pool.conf /usr/local/etc/php-fpm.d/
RUN apt-get update \
&& apt-get install -y wget gnupg2 \
&& wget -O - https://packagecloud.io/gpg.key | apt-key add - \
&& wget -q -O - https://packages.blackfire.io/gpg.key | apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install blackfire-agent \
&& apt-get install blackfire-php
EXPOSE 9001