Moved docker images to project and updated database image

This commit is contained in:
2026-07-06 15:24:54 +03:00
parent 3a8012e694
commit a3809d57a4
7 changed files with 169 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
# Use the official PostgreSQL image as base
FROM postgres:18.4
# Install build dependencies and pgvector
RUN apt-get update && apt-get install -y \
build-essential \
git \
postgresql-server-dev-18 \
python3 \
python3-pip \
python3-psycopg2 \
rclone \
&& git clone --branch v0.8.2 https://github.com/pgvector/pgvector.git \
&& cd pgvector \
&& make \
&& make install \
&& cd .. \
&& rm -rf pgvector \
&& apt-get remove -y build-essential git postgresql-server-dev-18 \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*