Skip to content

Commit 34b335e

Browse files
committed
Apply available security updates
1 parent 7edabf6 commit 34b335e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
3543
COPY --from=composer:2.7.7 /usr/bin/composer /usr/bin/composer
3644

Dockerfile_dev

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
7381
COPY --from=composer:2.7.7 /usr/bin/composer /usr/bin/composer
7482

0 commit comments

Comments
 (0)