Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion docker/Dockerfile.postgres
Original file line number Diff line number Diff line change
@@ -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
Loading