3
3
#
4
4
# PLEASE DO NOT EDIT IT DIRECTLY.
5
5
#
6
- FROM debian:11.0
6
+ FROM debian:11.3
7
7
8
8
# To enable latest Apache image on buster:
9
9
# RUN echo deb http://deb.debian.org/debian buster-backports main | tee /etc/apt/sources.list.d/buster-backports.list
@@ -123,9 +123,9 @@ ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
123
123
124
124
# PHP 8 (for GPG KEY watch out "using key ... " notice in error message) / changes with minor versions
125
125
ENV GPG_KEYS "F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD"
126
- ENV PHP_VERSION 8.1.3
127
- ENV PHP_URL="https://www.php.net/distributions/php-8.1.3 .tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-8.1.3 .tar.xz.asc"
128
- ENV PHP_SHA256="5d65a11071b47669c17452fb336c290b67c101efb745c1dbe7525b5caf546ec6 " PHP_MD5=""
126
+ ENV PHP_VERSION 8.1.5
127
+ ENV PHP_URL="https://www.php.net/distributions/php-8.1.5 .tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-8.1.5 .tar.xz.asc"
128
+ ENV PHP_SHA256="7647734b4dcecd56b7e4bd0bc55e54322fa3518299abcdc68eb557a7464a2e8a " PHP_MD5=""
129
129
130
130
RUN set -xe; \
131
131
\
@@ -218,8 +218,17 @@ RUN apt-get update && apt-get install -y libc-client-dev libkrb5-dev libonig-dev
218
218
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
219
219
RUN docker-php-ext-configure imap --with-imap-ssl --with-kerberos
220
220
RUN docker-php-ext-install -j$(nproc) gd imap zip mysqli pdo_mysql iconv
221
- RUN pecl channel-update pecl.php.net
222
- RUN pecl download mcrypt-1.0.4.tgz && pecl install mcrypt-1.0.4.tgz && docker-php-ext-enable mcrypt
221
+ # Fix mcrypt for 8.1 PHP before 1.0.5 comes out
222
+ # RUN pecl channel-update pecl.php.net
223
+ # RUN pecl download mcrypt-1.0.4.tgz && pecl install mcrypt-1.0.4.tgz && docker-php-ext-enable mcrypt
224
+ COPY mcrypt-1.0.4.tgz /usr/src/php/ext/
225
+ RUN cd /usr/src/php/ext \
226
+ && tar xzf mcrypt-1.0.4.tgz \
227
+ && mv mcrypt-1.0.4 mcrypt \
228
+ && docker-php-ext-configure mcrypt \
229
+ && docker-php-ext-install -j$(nproc) mcrypt \
230
+ && docker-php-ext-enable mcrypt
231
+ # End of fix
223
232
RUN pecl install imagick && docker-php-ext-enable imagick
224
233
RUN pecl install xdebug
225
234
RUN echo "expose_php=Off" >> /usr/local/etc/php/conf.d/noexposure.ini
@@ -246,6 +255,7 @@ COPY apache2-foreground /usr/local/bin/
246
255
247
256
RUN apache2ctl -v
248
257
RUN php -v
258
+ RUN php -m
249
259
WORKDIR /var/www/html
250
260
251
261
EXPOSE 80
0 commit comments