Skip to content

Commit d84dce5

Browse files
committed
Removes binary dependency from psycopg (1 and 2)
1 parent 19f33be commit d84dce5

File tree

3 files changed

+28
-68
lines changed

3 files changed

+28
-68
lines changed

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ COPY poetry.lock pyproject.toml README.md /app/
1919
COPY pytest.ini /app/src/
2020

2121
USER root
22+
RUN apt update -y && apt upgrade -y && apt install -y gcc libpq-dev
2223
RUN pip install -U pip poetry
2324

2425
RUN poetry config virtualenvs.create false && \

‎poetry.lock‎

Lines changed: 26 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ python = ">=3.11,<3.13"
1111
fastapi = "0.109.2"
1212
sqlalchemy = "^2.0.23"
1313
uvicorn = {extras = ["standard"], version = "^0.24.0.post1"}
14-
psycopg2-binary = "^2.9.9"
14+
psycopg2 = "^2.9.9"
1515
pgvector = "^0.2.3"
1616
python-decouple = "^3.8"
1717
openai = "^1.2.2"
1818
pydantic = "^2.4.2"
1919
psycopg = "^3.1.12"
2020
tiktoken = "<1"
2121
pandas = "^2.1.3"
22-
psycopg-binary = "^3.1.12"
2322
scikit-learn = "^1.3.2"
2423
alembic = "^1.12.1"
2524
importlib-metadata = "^7.0.1"

0 commit comments

Comments
 (0)