Added postgress database

This commit is contained in:
2026-06-28 14:02:03 +03:00
parent d2113f8926
commit 26a6c32ae5
3 changed files with 56 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# 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 \
&& 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/*
+3
View File
@@ -0,0 +1,3 @@
docker build -t custom-postgres .
docker tag custom-postgres 10.0.2.119:5000/custom-postgres
docker push 10.0.2.119:5000/custom-postgres