1- FROM debian:bullseye
1+ FROM debian:bullseye-20250224-slim
22
33# prevent Debian's PHP packages from being installed
44# https://github.com/docker-library/php/pull/542
@@ -10,16 +10,15 @@ RUN set -eux; \
1010 } > /etc/apt/preferences.d/no-debian-php
1111
1212# persistent / runtime deps
13- ENV PHPIZE_DEPS \
14- autoconf \
13+ ENV PHPIZE_DEPS="autoconf \
1514 dpkg-dev \
1615 file \
1716 g++ \
1817 gcc \
1918 libc-dev \
2019 make \
2120 pkg-config \
22- re2c
21+ re2c"
2322
2423RUN apt-get update && \
2524 apt-get upgrade -y && \
@@ -37,10 +36,10 @@ RUN set -x \
3736 && adduser --system --home /DATA --shell /bin/bash --group nginx \
3837 && usermod -G www-data nginx
3938
40- ENV PHP_INI_DIR /usr/local/etc/php
39+ ENV PHP_INI_DIR= " /usr/local/etc/php"
4140RUN mkdir -p $PHP_INI_DIR/conf.d
4241
43- ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=nginx --with-fpm-group=www-data
42+ ENV PHP_EXTRA_CONFIGURE_ARGS= " --enable-fpm --with-fpm-user=nginx --with-fpm-group=www-data"
4443
4544# Apply stack smash protection to functions using local buffers and alloca()
4645# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
@@ -52,9 +51,9 @@ ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
5251ENV PHP_CPPFLAGS="$PHP_CFLAGS"
5352ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
5453
55- ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
54+ ENV GPG_KEYS= " 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3"
5655
57- ENV PHP_VERSION 5.6.40
56+ ENV PHP_VERSION= " 5.6.40"
5857ENV PHP_URL="https://secure.php.net/get/php-5.6.40.tar.xz/from/this/mirror" PHP_ASC_URL="https://secure.php.net/get/php-5.6.40.tar.xz.asc/from/this/mirror"
5958ENV PHP_SHA256="1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c" PHP_MD5=""
6059
@@ -201,7 +200,7 @@ RUN { \
201200 } > /usr/local/etc/php/conf.d/opcache-recommended.ini
202201
203202# Set timezone
204- ENV TZ Europe/Riga
203+ ENV TZ= " Europe/Riga"
205204RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
206205
207206COPY files/docker-php-ext-* /usr/local/bin/
@@ -213,7 +212,7 @@ ENV TERM="xterm" \
213212 DB_USER="" \
214213 DB_PASS=""
215214
216- ENV PATH /DATA/bin:$PATH
215+ ENV PATH= " /DATA/bin:$PATH"
217216
218217RUN set -ex \
219218 && cd /usr/local/etc \
0 commit comments