From 3ceadaaadc034bcbbdbe510dabd3d1f1207a66be Mon Sep 17 00:00:00 2001 From: Siggy Date: Wed, 11 Sep 2024 11:30:41 +0200 Subject: [PATCH] Issue EICNET-3129: added unattended upgrades in the image build so that we get latest security fixes. --- docker/php/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index efa3619e9..79738998e 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -69,7 +69,13 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \ && npm --version \ && yarn --version; -RUN apt-get update && apt-get install -yq --no-install-recommends gnupg2 curl ca-certificates +RUN apt update && apt install -y unattended-upgrades; +RUN dpkg-reconfigure unattended-upgrades; +RUN unattended-upgrade -d; +RUN apt-get install -yq --no-install-recommends gnupg2 curl ca-certificates +RUN apt-get autoremove unattended-upgrades -y --purge; \ + apt-get clean; \ + rm -rf /var/lib/apt/lists/*; USER web