From e729859164780650bafef8a7034ab0c217dee9e0 Mon Sep 17 00:00:00 2001 From: "Mees, T.D. (Ty)" Date: Wed, 4 Sep 2024 16:12:45 +0200 Subject: [PATCH] fix: install psql connector in container --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3890966..721ea92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,15 @@ WORKDIR /app COPY . /app # Install dependencies +## Container dependencies +RUN apk add postgresql-dev gcc musl-dev libffi-dev +RUN pip install gunicorn psycopg2 +## App dependencies RUN apk add git xmlsec gettext RUN pip install -r requirements.txt -RUN pip install gunicorn -# Cleanup -RUN apk del git +# Cleanup build-only packages +RUN apk del git postgresql-dev gcc musl-dev libffi-dev # Compile messages RUN python manage.py compilemessages