File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ RUN install-php-extensions \
3131 pdo_mysql \
3232 zip
3333
34+ # Install security updates
35+ RUN apt-get update \
36+ && apt-get install -y \
37+ debsecan \
38+ && apt-get install --no-install-recommends -y \
39+ $(debsecan --suite bookworm --format packages --only-fixed) \
40+ && rm -rf /var/lib/apt/lists/*
41+
3442# Copy the Composer PHAR from the Composer image into the PHP image
3543COPY --from=composer:2.7.7 /usr/bin/composer /usr/bin/composer
3644
Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ RUN install-php-extensions \
6969 xdebug \
7070 zip
7171
72+ # Install security updates
73+ RUN apt-get update \
74+ && apt-get install -y \
75+ debsecan \
76+ && apt-get install --no-install-recommends -y \
77+ $(debsecan --suite bookworm --format packages --only-fixed) \
78+ && rm -rf /var/lib/apt/lists/*
79+
7280# Copy the Composer PHAR from the Composer image into the PHP image
7381COPY --from=composer:2.7.7 /usr/bin/composer /usr/bin/composer
7482
You can’t perform that action at this time.
0 commit comments