diff --git a/postgres/15/Dockerfile b/postgres/15/Dockerfile index 70299940..b5ab3a44 100644 --- a/postgres/15/Dockerfile +++ b/postgres/15/Dockerfile @@ -41,6 +41,9 @@ RUN apt-get update \ postgresql-$PG_MAJOR-postgis-$POSTGIS_VERSION-scripts \ postgis; \ fi \ + && if [ "$USE_PGVECTOR" != "false" ]; then apt-get install -f -y --no-install-recommends \ + postgresql-$PG_MAJOR-pgvector; \ + fi \ && add-apt-repository "deb http://ftp.debian.org/debian testing main contrib" \ && apt-get update && apt-get install -f -y --no-install-recommends \ libprotobuf-c1 \ diff --git a/postgres/16/Dockerfile b/postgres/16/Dockerfile index 02c6e4eb..c99a7ade 100644 --- a/postgres/16/Dockerfile +++ b/postgres/16/Dockerfile @@ -41,6 +41,9 @@ RUN apt-get update \ postgresql-$PG_MAJOR-postgis-$POSTGIS_VERSION-scripts \ postgis; \ fi \ + && if [ "$USE_PGVECTOR" != "false" ]; then apt-get install -f -y --no-install-recommends \ + postgresql-$PG_MAJOR-pgvector; \ + fi \ && add-apt-repository "deb http://ftp.debian.org/debian testing main contrib" \ && apt-get update && apt-get install -f -y --no-install-recommends \ libprotobuf-c1 \