From b95a8f1b8ed87fbda412b5109c5d58dc993876b8 Mon Sep 17 00:00:00 2001 From: VS Date: Mon, 30 Nov 2026 15:52:22 +0100 Subject: [PATCH] Fix PG Backups --- apache/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apache/Dockerfile b/apache/Dockerfile index 78e3272..da942a0 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -14,6 +14,14 @@ ENV TZ="Europe/Prague" \ # Timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +# Register PostgreSQL (PGDG) APT repository +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail \ + https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + . /etc/os-release && \ + echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main" \ + > /etc/apt/sources.list.d/pgdg.list + # Install Additional System Dependencies RUN rm -f /etc/apt/apt.conf.d/docker-clean RUN --mount=type=cache,target=/var/cache/apt \ @@ -35,7 +43,7 @@ RUN --mount=type=cache,target=/var/cache/apt \ cron \ nano \ default-mysql-client \ - postgresql-client \ + postgresql-client-19 \ imagemagick \ libmagickwand-dev \ librsvg2-2 \