feat: add postgreSQL database support

!35
This commit is contained in:
2024-07-10 14:05:34 +09:30
parent f0bbd22cf4
commit 332810ffd6
2 changed files with 9 additions and 2 deletions

View File

@ -19,7 +19,10 @@ RUN apk add --update \
gettext \
mariadb-client \
mariadb-dev \
pkgconf
pkgconf \
postgresql16-dev \
postgresql16-client \
libpq-dev
RUN pip install --upgrade \
setuptools \
@ -75,7 +78,8 @@ COPY includes/ /
RUN apk update --no-cache; \
apk add --no-cache \
mariadb-client \
mariadb-dev; \
mariadb-dev \
postgresql16-client; \
pip install --no-cache-dir /tmp/python_builds/*.*; \
python /app/manage.py collectstatic --noinput; \
rm -rf /tmp/python_builds; \

View File

@ -1,2 +1,5 @@
# mysql support
mysqlclient==2.2.4
# Postgres support
psycopg2==2.9.9 # postgresql16-dev postgresql16-client libpq-dev