From 5537830592fef526a777754d9f7827ed5b226818 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 7 May 2025 03:57:15 +0300 Subject: [PATCH] Update Dockerfile to configure PostgreSQL repository and client Replaced Debian's PostgreSQL client with version 17 and added the PostgreSQL apt repository for more control over versions. Switched from `apt` to `apt-get` for consistency, and included necessary dependencies like `wget` and `gnupg` for repository setup. --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed44d27e..223b1fc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,13 @@ WORKDIR /app RUN set -eux; \ sed -i 's|https://deb.debian.org/debian|https://ftp.uk.debian.org/debian|g' /etc/apt/sources.list.d/debian.sources; \ - apt update; \ - apt install -y --no-install-recommends --fix-missing \ + apt-get update; \ + apt-get install -y --no-install-recommends wget gnupg; \ + wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -; \ + echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" \ + > /etc/apt/sources.list.d/pgdg.list; \ + apt-get update; \ + apt-get install -y --no-install-recommends --fix-missing \ build-essential \ libpq-dev \ gettext \ @@ -23,7 +28,7 @@ RUN set -eux; \ graphviz \ binutils \ libproj-dev \ - postgresql-client \ + postgresql-client-17 \ gdal-bin; \ rm -rf /var/lib/apt/lists/*; \ pip install --upgrade pip; \