From 621fe85ca602e80e9c6f467277826767ecec869d Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 5 Jun 2025 15:14:39 +0200 Subject: [PATCH] Upgrades image to postgres:14.18-alpine3.21 and vulnerable package --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ecc043a..fd2ba54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,12 +34,16 @@ RUN set -ex \ && install main/pg/wal-g / \ && /wal-g --help -FROM postgres:14.17-alpine3.21 +FROM postgres:14.18-alpine3.21 + +# Upgrade vulnerable libxml2 package +RUN apk upgrade --no-cache libxml2 RUN apk add --update iputils htop curl busybox-suid jq \ && curl -sOL https://cronitor.io/dl/linux_amd64.tar.gz \ && tar xvf linux_amd64.tar.gz -C /usr/bin/ \ - && apk upgrade --no-cache + && apk upgrade --no-cache libxml2 \ + && apk info -v libxml2 # Copy compiled wal-g binary from builder COPY --from=builder /wal-g /usr/local/bin