From c8ab9c93facc8123297b6b283b6a271b6bcf114d Mon Sep 17 00:00:00 2001 From: gietschess <49275246+gietschess@users.noreply.github.com> Date: Tue, 2 Jul 2024 19:14:18 +0200 Subject: [PATCH] fix(deps): build python psycopg3 dependency instead of use the pre-build binary Signed-off-by: gietschess <49275246+gietschess@users.noreply.github.com> --- Dockerfile.django-alpine | 6 ++++-- Dockerfile.nginx-alpine | 4 +++- requirements.txt | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile.django-alpine b/Dockerfile.django-alpine index 7d712ad6268..5fb9dc8e77e 100644 --- a/Dockerfile.django-alpine +++ b/Dockerfile.django-alpine @@ -16,13 +16,15 @@ RUN \ bind-tools \ mysql-client \ mariadb-dev \ - postgresql14-client \ + postgresql16-client \ xmlsec \ git \ util-linux \ curl-dev \ openssl \ libffi-dev \ + python3-dev \ + libpq-dev \ && \ rm -rf /var/cache/apk/* && \ true @@ -49,7 +51,7 @@ RUN \ xmlsec \ git \ util-linux \ - postgresql14-client \ + postgresql16-client \ curl-dev \ openssl \ # needed for integration-tests diff --git a/Dockerfile.nginx-alpine b/Dockerfile.nginx-alpine index b9a55ac4158..bd4caaa2064 100644 --- a/Dockerfile.nginx-alpine +++ b/Dockerfile.nginx-alpine @@ -16,13 +16,15 @@ RUN \ bind-tools \ mysql-client \ mariadb-dev \ - postgresql14-client \ + postgresql16-client \ xmlsec \ git \ util-linux \ curl-dev \ openssl \ libffi-dev \ + python3-dev \ + libpq-dev \ && \ rm -rf /var/cache/apk/* && \ true diff --git a/requirements.txt b/requirements.txt index 3feab385aca..1eb5dfe9769 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,7 +35,7 @@ Markdown==3.6 mysqlclient==2.1.1 openpyxl==3.1.5 Pillow==10.4.0 # required by django-imagekit -psycopg[binary]==3.1.19 +psycopg[c]==3.1.19 cryptography==42.0.8 python-dateutil==2.9.0.post0 pytz==2024.1