Skip to content

Commit 752036c

Browse files
committed
Use the binary version of psycopg
1 parent 1768ba5 commit 752036c

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
99
ENV PYTHONUNBUFFERED=1
1010

1111
# install deb packages
12+
# PostgreSQL dependencies are needed for dbshell and backup process
1213
RUN apt-get update \
1314
&& apt-get install --assume-yes --no-install-recommends \
1415
gettext \
@@ -30,16 +31,10 @@ RUN apt-get update \
3031
&& apt-get install --assume-yes --no-install-recommends \
3132
g++ \
3233
gcc \
33-
libc6-dev \
34-
libpq-dev \
35-
zlib1g-dev \
3634
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
3735
&& apt-get purge --assume-yes --auto-remove \
3836
g++ \
3937
gcc \
40-
libc6-dev \
41-
libpq-dev \
42-
zlib1g-dev \
4338
&& apt-get distclean
4439

4540
# copy project

requirements/common.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Jinja2==3.1.6
1414
libsass==0.23.0
1515
Markdown==3.9
1616
Pillow==11.3.0
17-
psycopg[c]==3.2.9
1817
Pygments==2.19.2
1918
pykismet3==0.1.1
2019
requests==2.32.5

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r common.txt
22
django-debug-toolbar==6.0.0
33
pre-commit~=4.3.0
4+
psycopg[binary]==3.2.10
45
watchdog==6.0.0

requirements/prod.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r common.txt
22
gunicorn==23.0.0
3+
psycopg[c]==3.2.10
34
redis==6.4.0
45
sentry-sdk==2.38.0

0 commit comments

Comments
 (0)