1
1
# Container Base
2
- FROM php:8.3 -apache
2
+ FROM php:8.4 -apache
3
3
4
4
ENV \
5
5
NR_ENABLED=false \
6
6
NR_APP_NAME="" \
7
7
NR_LICENSE_KEY="" \
8
8
NR_VERSION="" \
9
- PHP_BUILD_DATE="20211130" \
10
9
PHP_OPCACHE_ENABLED=false \
11
10
SESSION_HANDLER=false \
12
11
SESSION_HANDLER_NAME="" \
15
14
XDEBUG_CONNECT_BACK=true \
16
15
XDEBUG_ENABLED=false \
17
16
XDEBUG_IDEKEY="docker" \
18
- XDEBUG_VERSION="-3.3.2" \
19
- REDIS_VERSION="-5.3.7" \
17
+ XDEBUG_VERSION="-3.4.0beta1" \
18
+ REDIS_VERSION="-6.1.0" \
19
+ IMAP_VERSION="" \
20
20
XDEBUG_REMOTE_PORT=9000 \
21
21
PHP_EXTENSION_WDDX=1 \
22
22
PHP_OPENSSL=1 \
@@ -32,8 +32,11 @@ RUN a2enmod rewrite unique_id headers
32
32
33
33
RUN docker-php-ext-configure gd --with-jpeg \
34
34
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
35
- && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
36
- && docker-php-ext-install -j$(nproc) bcmath gd pdo_mysql calendar exif gettext shmop soap sockets intl pcntl xsl ldap imap ftp
35
+ && docker-php-ext-install -j$(nproc) bcmath gd pdo_mysql calendar exif gettext shmop soap sockets intl pcntl xsl ldap ftp
36
+
37
+ RUN echo "---> Adding IMAP" && \
38
+ pecl install imap${IMAP_VERSION} && \
39
+ docker-php-ext-enable imap
37
40
38
41
RUN echo "---> Adding Redis" && \
39
42
pecl install redis${REDIS_VERSION} && \
@@ -59,22 +62,24 @@ RUN echo "---> Configure Opcache" && \
59
62
echo "opcache.enable=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
60
63
echo "opcache.enable_cli=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
61
64
62
- RUN echo "---> Adding NewRelic" && \
63
- apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests gnupg2 \
64
- && echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list \
65
- && wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - \
66
- && sudo apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests newrelic-php5 \
67
- && NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 newrelic-install install \
68
- && chown www-data:www-data /usr/local/etc/php/conf.d/newrelic.ini && chmod a+rw /usr/local/etc/php/conf.d/newrelic.ini \
69
- && apt-get remove -y gnupg2 && rm -rf /var/lib/apt/lists/* \
70
- && echo "newrelic.distributed_tracing_enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
71
- && echo "newrelic.application_logging.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
72
- && echo "newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
73
-
74
65
RUN echo "---> Adding Tini" && \
75
66
wget -O /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini-static && \
76
67
chmod +x /tini
77
68
69
+ # reativar quando liberar
70
+ # RUN echo "---> Adding NewRelic" && \
71
+ # apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests gnupg2 \
72
+ # && echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list \
73
+ # && wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - \
74
+ # && sudo apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests newrelic-php5 \
75
+ # && NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 newrelic-install install \
76
+ # && cp /usr/lib/newrelic-php5/scripts/newrelic.ini.template /usr/local/etc/php/conf.d/newrelic.ini \
77
+ # && chown www-data:www-data /usr/local/etc/php/conf.d/newrelic.ini && chmod a+rw /usr/local/etc/php/conf.d/newrelic.ini \
78
+ # && apt-get remove -y gnupg2 && rm -rf /var/lib/apt/lists/* #\
79
+ # && echo "newrelic.distributed_tracing_enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
80
+ # && echo "newrelic.application_logging.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
81
+ # && echo "newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
82
+
78
83
RUN echo "---> Config sudoers" && \
79
84
echo "www-data ALL = ( ALL ) NOPASSWD: ALL" >> /etc/sudoers
80
85
0 commit comments