Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(docker): upgrade the base image's Debian packages at build time
Yudhi Armyndharis69ea94d5b7dd
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d0755bef4..42bae37cd 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- The webhook docs state that at the default limits media above about 768 KiB reaches webhooks as the omitted marker, and how to raise both limits ([#1569](https://github.com/rmyndharis/OpenWA/issues/1569)). Thanks @Magnarks for the report.- The takeover sweep marks sessions left `ready` or `initializing` by a node that never returned disconnected, regardless of `AUTO_START_SESSIONS`.- Branch Docker images (`:main`, sha tags) rebuild the production apt layer, so they cannot serve stale OS packages from the build cache.+- The Docker image upgrades the Debian packages inherited from the digest-pinned `node:22-slim` base at build time, so security fixes published after the base snapshot reach them; this clears CVE-2026-86145 and CVE-2026-89161 in `libpcre2-8-0`.- The Message Tester's bulk-recipients file picker refuses files over 2 MB before reading them.- A misspelled `LOG_LEVEL` fails the boot naming the accepted values, instead of silently logging at info.- Dependabot can open better-sqlite3 13.x patch and minor updates again; the freeze now starts at v14.diff --git a/Dockerfile b/Dockerfileindex c398e5127..777bfc600 100644--- a/Dockerfile+++ b/Dockerfile@@ -90,7 +90,12 @@ ARG TARGETARCH# cost with --no-install-recommends: ~210 MB, and no new fixable CRITICAL/HIGH findings under the# release image scan. It is the Debian package rather than a bundled static build precisely so that# codec CVEs arrive through the same security stream as everything else here.-RUN apt-get update && apt-get install -y --no-install-recommends \+#+# `apt-get upgrade` runs first because the base is pinned by digest: the Debian packages it ships+# (libpcre2, libc, openssl and the rest) keep that snapshot's versions, and `apt-get install` upgrades+# only the packages it names. A bookworm-security fix published after the snapshot reaches them here,+# and the release workflow rebuilds this layer without cache so the fix is actually picked up.+RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \$([ "$TARGETARCH" = arm64 ] && echo "chromium chromium-sandbox") \fonts-liberation \libappindicator3-1 \