1
1
# Container Base
2
- FROM php:7.3 -apache
2
+ FROM php:7.4.0 -apache
3
3
4
4
ENV http_proxy ${HTTP_PROXY}
5
5
ENV https_proxy ${HTTP_PROXY}
@@ -16,27 +16,26 @@ ENV XDEBUG_AUTOSTART=false
16
16
ENV XDEBUG_CONNECT_BACK=true
17
17
ENV XDEBUG_ENABLED=false
18
18
ENV XDEBUG_IDEKEY="docker"
19
- ENV XDEBUG_VERSION="-2.7.0beta1"
19
+ ENV XDEBUG_VERSION="-2.8.1"
20
+ ENV PHP_EXTENSION_WDDX=1
21
+ ENV PHP_OPENSSL=1
20
22
21
- RUN apt-get update && apt-get install -y wget vim supervisor libfreetype6-dev libjpeg62-turbo-dev \
23
+ RUN apt-get update && apt-get install -y --no-install-recommends wget vim supervisor libfreetype6-dev libjpeg62-turbo-dev \
22
24
libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \
23
25
libldap2-dev libicu-dev libc-client-dev libkrb5-dev libsqlite3-dev libedit-dev \
24
- sudo zlib1g zlib1g-dev libzip4 libzip-dev zip \
25
- librabbitmq-dev
26
+ sudo zlib1g zlib1g-dev libzip4 libzip-dev zip librabbitmq-dev && \
27
+ rm -rf /var/lib/apt/lists/*
26
28
27
29
RUN a2enmod rewrite
28
30
29
- RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
30
- && docker-php-ext-configure hash --with-mhash \
31
+ RUN docker-php-ext-configure gd \
31
32
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
32
33
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
33
- && docker-php-ext-install -j$(nproc) bcmath \
34
- gd pdo_mysql calendar exif gettext \
35
- hash xsl ldap intl imap \
36
- pcntl shmop soap sockets wddx
34
+ && docker-php-ext-install -j$(nproc) bcmath gd pdo_mysql calendar exif gettext shmop soap sockets intl pcntl xsl ldap imap
37
35
38
- RUN pecl install redis \
39
- && docker-php-ext-enable redis
36
+ RUN echo "---> Adding Redis" && \
37
+ pecl install redis && \
38
+ docker-php-ext-enable redis
40
39
41
40
RUN echo "---> Adding xDebug" && \
42
41
pecl install xdebug${XDEBUG_VERSION}
@@ -54,19 +53,13 @@ RUN echo "---> Configure Opcache" && \
54
53
echo "opcache.enable=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
55
54
echo "opcache.enable_cli=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
56
55
57
- RUN echo "---> Adding Support for NewRelic" && \
58
- mkdir /tmp/newrelic /scripts/ && \
59
- cd /tmp/newrelic && \
60
- wget -r -l1 -nd -A"linux.tar.gz" https://download.newrelic.com/php_agent/release/ && \
61
- gzip -dc newrelic*.tar.gz | tar xf - && \
62
- cd newrelic-php5* && \
63
- rm -f /usr/local/lib/php/extensions/no-debug-non-zts-${PHP_BUILD_DATE}/newrelic.so && \
64
- cp ./agent/x64/newrelic-${PHP_BUILD_DATE}.so /usr/local/lib/php/extensions/no-debug-non-zts-${PHP_BUILD_DATE}/newrelic.so && \
65
- cp ./daemon/newrelic-daemon.x64 /usr/bin/newrelic-daemon && \
66
- cp ./scripts/newrelic.ini.template /scripts/newrelic.ini && \
67
- mkdir /var/log/newrelic && \
68
- chown -R www-data:www-data /var/log/newrelic && \
69
- rm -rf /tmp/*
56
+ RUN apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests gnupg2 \
57
+ && echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list \
58
+ && wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - \
59
+ && sudo apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests newrelic-php5 \
60
+ && NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 newrelic-install install \
61
+ && chown www-data:www-data /usr/local/etc/php/conf.d/newrelic.ini && chmod a+rw /usr/local/etc/php/conf.d/newrelic.ini \
62
+ && apt-get remove newrelic-php5 gnupg2 && rm -rf /var/lib/apt/lists/*
70
63
71
64
RUN echo "---> Adding Tini" && \
72
65
wget -O /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini-static && \
0 commit comments