Skip to content

Commit 680ef1f

Browse files
committed
Use the binary version of psycopg
1 parent b1eb535 commit 680ef1f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ RUN apt-get update \
1313
&& apt-get install --assume-yes --no-install-recommends \
1414
gettext \
1515
git \
16-
libpq5 \
17-
postgresql-common \
1816
make \
1917
rsync \
20-
&& /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y \
21-
&& apt-get install --assume-yes --no-install-recommends \
22-
postgresql-client-17 \
2318
&& apt-get distclean
2419

2520
ARG REQ_FILE=requirements/prod.txt
@@ -31,15 +26,11 @@ RUN apt-get update \
3126
g++ \
3227
gcc \
3328
libc6-dev \
34-
libpq-dev \
35-
zlib1g-dev \
3629
&& python3 -m pip install --no-cache-dir -r ${REQ_FILE} \
3730
&& apt-get purge --assume-yes --auto-remove \
3831
g++ \
3932
gcc \
4033
libc6-dev \
41-
libpq-dev \
42-
zlib1g-dev \
4334
&& apt-get distclean
4435

4536
# copy project

requirements/common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jinja2==3.1.6
1414
libsass==0.23.0
1515
Markdown==3.9
1616
Pillow==11.3.0
17-
psycopg[c]==3.2.9
17+
psycopg[binary]==3.2.9
1818
Pygments==2.19.2
1919
pykismet3==0.1.1
2020
requests==2.32.5

0 commit comments

Comments
 (0)