From 86264cb4091b754551d624cb2547213ac2a904ff Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Wed, 15 Oct 2025 07:33:41 +0000 Subject: [PATCH] Dockerfile aktualisiert --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index bfd1551..449de26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# vim:set ft=dockerfile: # # Copyright The CloudNativePG Contributors # @@ -14,17 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. # -FROM postgres:16.9-bookworm +FROM postgres:16.10-bookworm # Do not split the description, otherwise we will see a blank space in the labels LABEL name="PostgreSQL Container Images" \ vendor="The CloudNativePG Contributors" \ version="${PG_VERSION}" \ - release="2" \ + release="1" \ summary="PostgreSQL Container images." \ - description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.9-bookworm." + description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.10-bookworm." -LABEL org.opencontainers.image.description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.9-bookworm." +LABEL org.opencontainers.image.description="This Docker image contains PostgreSQL and Barman Cloud based on Postgres 16.10-bookworm." COPY requirements.txt / @@ -33,10 +32,11 @@ ENV LANG de_DE.utf8 # Install additional extensions RUN set -xe; \ + rm -fr /var/lib/postgresql/data; \ apt-get update; \ - if apt list --upgradable 2>/dev/null | grep -q '^postgres'; then \ + if apt-get -s upgrade | grep "^Inst postgres"; then \ echo "ERROR: Upgradable postgres packages found!"; \ - apt list --upgradable 2>/dev/null | grep '^postgres'; \ + apt-get -s upgrade | grep "^Inst postgres"; \ exit 1; \ fi; \ apt-get install -y --no-install-recommends \