1
- FROM debian:bullseye
1
+ FROM debian:bullseye-20250224-slim
2
2
3
3
# prevent Debian's PHP packages from being installed
4
4
# https://github.com/docker-library/php/pull/542
@@ -10,16 +10,15 @@ RUN set -eux; \
10
10
} > /etc/apt/preferences.d/no-debian-php
11
11
12
12
# persistent / runtime deps
13
- ENV PHPIZE_DEPS \
14
- autoconf \
13
+ ENV PHPIZE_DEPS="autoconf \
15
14
dpkg-dev \
16
15
file \
17
16
g++ \
18
17
gcc \
19
18
libc-dev \
20
19
make \
21
20
pkg-config \
22
- re2c
21
+ re2c"
23
22
24
23
RUN apt-get update && \
25
24
apt-get upgrade -y && \
@@ -37,10 +36,10 @@ RUN set -x \
37
36
&& adduser --system --home /DATA --shell /bin/bash --group nginx \
38
37
&& usermod -G www-data nginx
39
38
40
- ENV PHP_INI_DIR /usr/local/etc/php
39
+ ENV PHP_INI_DIR= " /usr/local/etc/php"
41
40
RUN mkdir -p $PHP_INI_DIR/conf.d
42
41
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"
44
43
45
44
# Apply stack smash protection to functions using local buffers and alloca()
46
45
# 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"
52
51
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
53
52
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
54
53
55
- ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
54
+ ENV GPG_KEYS= " 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3"
56
55
57
- ENV PHP_VERSION 5.6.40
56
+ ENV PHP_VERSION= " 5.6.40"
58
57
ENV 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"
59
58
ENV PHP_SHA256="1369a51eee3995d7fbd1c5342e5cc917760e276d561595b6052b21ace2656d1c" PHP_MD5=""
60
59
@@ -201,7 +200,7 @@ RUN { \
201
200
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
202
201
203
202
# Set timezone
204
- ENV TZ Europe/Riga
203
+ ENV TZ= " Europe/Riga"
205
204
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
206
205
207
206
COPY files/docker-php-ext-* /usr/local/bin/
@@ -213,7 +212,7 @@ ENV TERM="xterm" \
213
212
DB_USER="" \
214
213
DB_PASS=""
215
214
216
- ENV PATH /DATA/bin:$PATH
215
+ ENV PATH= " /DATA/bin:$PATH"
217
216
218
217
RUN set -ex \
219
218
&& cd /usr/local/etc \
0 commit comments