From d0c8fd31eac417035f5752b8bcd96eb9ea3f2ae9 Mon Sep 17 00:00:00 2001 From: Andy Chosak Date: Tue, 8 Oct 2024 15:46:50 -0400 Subject: [PATCH] Add dependencies for connecting to PostgreSQL Add libpq and psycopg2 so Django can talk to PostgreSQL. --- Dockerfile | 1 + requirements/base.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8edef7d..90ab1f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ RUN set -eux; \ \ # Needed at runtime. apk add --no-cache \ + libpq \ libxslt \ libxml2 \ ; \ diff --git a/requirements/base.txt b/requirements/base.txt index 7868f35..92fc040 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -9,6 +9,7 @@ django-filter==24.3 django-modelcluster==6.3 djangorestframework==3.15.2 djangorestframework-csv==3.0.0 +psycopg2-binary==2.9.9 whitenoise==6.7.0 # Ensure libxml2 is loaded dynamically; see