1- FROM php:8.4.1 -fpm
1+ FROM php:8.4.10 -fpm
22
33LABEL maintainer="Riddhesh Sanghvi <riddhesh237@gmail.com>"
44LABEL org.label-schema.schema-version="1.0.0"
@@ -31,20 +31,6 @@ RUN set -ex; \
3131 vim \
3232 zip
3333
34- # RUN curl -fsSLOJ https://pecl.php.net/get/mcrypt/stable \
35- # && tar -xf mcrypt-1.0.7.tgz
36- # RUN cd mcrypt-1.0.7 \
37- # && phpize \
38- # && ./configure \
39- # && make \
40- # && curl -fsSLOJ https://github.com/php/pecl-encryption-mcrypt/commit/5b16bf1c97c1bbab400fc877285bf0919ae73256.diff \
41- # && git apply 5b16bf1c97c1bbab400fc877285bf0919ae73256.diff \
42- # && make test \
43- # && cp modules/*.so $(pecl config-get ext_dir) \
44- # && cd .. \
45- # && rm -rf mcrypt-1.0.7.tgz mcrypt-1.0.7
46- # RUN echo extension="mcrypt.so" > /usr/local/etc/php/conf.d/php-ext-mcrypt.ini
47-
4834RUN pecl install imagick; \
4935 pecl install memcached; \
5036 pecl install redis; \
@@ -133,14 +119,14 @@ ln -s /usr/local/etc/misc/msmtprc /etc/msmtprc && \
133119chown www-data:www-data /usr/local/etc/misc/msmtprc && \
134120chown www-data:www-data /etc/msmtprc
135121
136- # RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\(.*\)".*/\1/') && \
137- # curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
138- # export NR_INSTALL_USE_CP_NOT_LN=1 && \
139- # export NR_INSTALL_SILENT=1 && \
140- # /tmp/newrelic-php5-*/newrelic-install install && \
141- # rm -rf /tmp/newrelic-php5-* /tmp/nrinstall*
122+ RUN latest_build=$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux.tar.gz' | sed 's/.*"\( .*\) ".*/\1 /' ) && \
123+ curl -L "https://download.newrelic.com$latest_build" | tar -C /tmp -zx && \
124+ export NR_INSTALL_USE_CP_NOT_LN=1 && \
125+ export NR_INSTALL_SILENT=1 && \
126+ /tmp/newrelic-php5-*/newrelic-install install && \
127+ rm -rf /tmp/newrelic-php5-* /tmp/nrinstall*
142128
143- # ENV NR_PORT=/run/newrelic/newrelic.sock
129+ ENV NR_PORT=/run/newrelic/newrelic.sock
144130
145131# Setup logs
146132RUN mkdir -p /var/log/php; \
@@ -153,8 +139,8 @@ COPY expose_off.ini /usr/local/etc/php/conf.d/expose_off.ini
153139COPY bashrc /root/.bashrc
154140COPY bashrc /var/www/.bashrc
155141COPY docker-entrypoint.sh /usr/local/bin/
156- # COPY newrelic.ini /usr/local/etc/php/conf.d/newrelic.ini
157- # COPY newrelic.ini /data/newrelic.ini
142+ COPY newrelic.ini /usr/local/etc/php/conf.d/newrelic.ini
143+ COPY newrelic.ini /data/newrelic.ini
158144
159145WORKDIR /var/www/htdocs
160146RUN usermod -s /bin/bash www-data
0 commit comments