/
storeksfeed
/
RAG-Bot
Обзор
Документация
Войти
/
storeksfeed
/
RAG-Bot
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Dockerfile.postgres
33 строки
1 KB
Semyon Glazyrin
Basic Telegram Bot, Django admin panel, llama.cpp embeddings
22 янв 2026, 10:30
Верифицирован
22 янв 2026, 10:30
ea381c0
Код
Авторство
О чём код?
FROM postgres:15.15 # postgres:15 # or gzdaniel/postgres-for-rag # Install dependencies for building extensions RUN apt-get update && apt-get install -y \ git \ build-essential \ postgresql-server-dev-15 \ bison \ flex \ && rm -rf /var/lib/apt/lists/* # Install pgvector RUN git clone https://github.com/pgvector/pgvector.git /tmp/pgvector \ && cd /tmp/pgvector \ && make \ && make install \ && rm -rf /tmp/pgvector # Install Apache AGE RUN git clone https://github.com/apache/age.git /tmp/age \ && cd /tmp/age \ && git checkout release/PG15/1.5.0 \ && make PG_CONFIG=/usr/lib/postgresql/15/bin/pg_config \ && make install \ && rm -rf /tmp/age # Create extension scripts RUN echo "CREATE EXTENSION IF NOT EXISTS vector;" > /docker-entrypoint-initdb.d/01-vector.sql RUN echo "CREATE EXTENSION IF NOT EXISTS age;" > /docker-entrypoint-initdb.d/02-age.sql RUN echo "LOAD 'age';" >> /docker-entrypoint-initdb.d/02-age.sql RUN echo "SET search_path = ag_catalog, \"$user\", public;" >> /docker-entrypoint-initdb.d/02-age.sql