chore(repo): add pgvector to our local postgresql instance

This commit is contained in:
Eric Allam
2025-11-24 17:18:27 +00:00
parent 83ddf721a4
commit 95a6fb2d7e
+19 -1
View File
@@ -1,5 +1,23 @@
FROM postgres:14
# Install build dependencies for pgvector
RUN apt-get update \
&& apt-get install -y postgresql-14-partman \
&& apt-get install -y --no-install-recommends \
postgresql-14-partman \
postgresql-server-dev-14 \
build-essential \
git \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install pgvector
RUN cd /tmp \
&& git clone --branch v0.5.1 https://github.com/pgvector/pgvector.git \
&& cd pgvector \
&& make \
&& make install \
&& cd .. \
&& rm -rf pgvector
# Optional: Cleanup build dependencies to keep image small (if you want)
# RUN apt-get remove -y build-essential git postgresql-server-dev-14 && apt-get autoremove -y