Skip to content

Commit fecf670

Browse files
authored
Always install latest security fixes (8.0,8.1). (#125)
- Add 'apt-get upgrade' to always update the already installed packages with the latest security fixes in case they are not already part of the parent image.
1 parent bf906d5 commit fecf670

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

core/php8.0Action/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ARG GO_PROXY_BUILD_FROM=release
4040

4141
# install PHP extensions
4242
RUN apt-get -y update \
43+
# Upgrade installed packages to get latest security fixes if the base image does not contain them already.
44+
&& apt-get upgrade -y --no-install-recommends \
4345
&& apt-get -y install --no-install-recommends \
4446
unzip \
4547
libfreetype6 \

core/php8.1Action/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ARG GO_PROXY_BUILD_FROM=release
4040

4141
# install PHP extensions
4242
RUN apt-get -y update \
43+
# Upgrade installed packages to get latest security fixes if the base image does not contain them already.
44+
&& apt-get upgrade -y --no-install-recommends \
4345
&& apt-get -y install --no-install-recommends \
4446
unzip \
4547
libfreetype6 \

0 commit comments

Comments
 (0)