From bf9fcba879392f56c25331b6b7cc14e950ccf117 Mon Sep 17 00:00:00 2001 From: Peter Klogborg Date: Thu, 18 Jun 2026 13:19:47 +0200 Subject: [PATCH] Remove perl from docker image perl-base is not needed at runtime and pulls in vulnerabilities. --- build/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/Dockerfile b/build/Dockerfile index 568dc71..4936995 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -3,6 +3,9 @@ FROM node:22-trixie-slim # Install Hugo RUN apt-get update && \ apt-get install -y hugo && \ + # perl-base is Essential, hence --allow-remove-essential; nothing in this + # image needs perl at runtime. + apt-get purge -y --allow-remove-essential perl-base && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*