From 6afbd1d9b16ed43a6dfb2dfb310f40c6c51fb703 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 psycopg2 dependency instead of use the pre-build binary Signed-off-by: gietschess <49275246+gietschess@users.noreply.github.com> --- Dockerfile.django-alpine | 4 +++- Dockerfile.nginx-alpine | 4 +++- requirements.txt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile.django-alpine b/Dockerfile.django-alpine index 7d712ad6268..dd627b85038 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 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 b867d11e399..7f07af578c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,7 +35,7 @@ Markdown==3.6 mysqlclient==2.1.1 openpyxl==3.1.5 Pillow==10.3.0 # required by django-imagekit -psycopg2-binary==2.9.9 +psycopg2==2.9.9 cryptography==42.0.8 python-dateutil==2.9.0.post0 pytz==2024.1